Skip to content

Commit 59e95fd

Browse files
authored
path plus optional add packages (#12)
* path plus build essential * review suggestions
1 parent b2dc7cb commit 59e95fd

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.devcontainer/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ ARG APAMA_IMAGE=public.ecr.aws/apama/apama-builder
33
FROM ${APAMA_IMAGE}:${APAMA_VERSION}
44

55
USER root
6-
RUN apt update && apt install git tar -y && apt clean
6+
ARG ADDITIONAL_PACKAGES=
7+
RUN apt update && apt install git tar ${ADDITIONAL_PACKAGES} -y && apt clean
78

89
RUN mkdir "/workspaces" && chown -R apama.apama "/workspaces"
910

@@ -23,6 +24,8 @@ RUN ln -s ${APAMA_WORK}/apama-analytics-builder-block-sdk /apama-analytics-build
2324
&& ln -s ${APAMA_WORK}/apama-eplapps-tools /apama-eplapps-tools
2425

2526
USER apama
27+
ENV ANALYTICS_BUILDER_SDK=${APAMA_WORK}/apama-analytics-builder-block-sdk
28+
ENV PATH="${APAMA_WORK}/apama-eplapps-tools/scripts:${APAMA_WORK}/apama-analytics-builder-block-sdk:${PATH}"
2629
WORKDIR "/workspaces"
2730

2831
ENV SHELL=/bin/bash

.devcontainer/devcontainer.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
"name": "cumulocity-streaming-analytics-development",
33
"build": {
44
"dockerfile": "Dockerfile",
5-
"args": {
5+
"args": {
66
"APAMA_IMAGE": "public.ecr.aws/apama/apama-builder",
77
"APAMA_VERSION": "latest",
88
"APAMA_ANALYTICS_BUILDER_SDK_BRANCH": "main",
9-
"APAMA_EPLAPPS_TOOLS_BRANCH": "main"
9+
"APAMA_EPLAPPS_TOOLS_BRANCH": "main",
10+
"ADDITIONAL_PACKAGES": ""
1011
}
1112
},
1213
"customizations": {
@@ -17,8 +18,10 @@
1718
]
1819
}
1920
},
20-
"forwardPorts": [15904],
21+
"forwardPorts": [
22+
15904
23+
],
2124
"overrideCommand": true,
2225
"remoteUser": "apama",
2326
"containerUser": "apama"
24-
}
27+
}

0 commit comments

Comments
 (0)