Skip to content

Commit b13ec4e

Browse files
committed
build var integration
1 parent 918759c commit b13ec4e

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.circleci/config.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,20 @@ builddeploy_steps: &builddeploy_steps
2828
- setup_remote_docker
2929
- run: *install_dependency
3030
- run: *install_deploysuite
31-
- run: ./build.sh ${APPNAME}
31+
- run:
32+
name: "configuring environment"
33+
command: |
34+
./awsconfiguration.sh $DEPLOY_ENV
35+
./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-buildvar
36+
- run:
37+
name: "building image"
38+
command: |
39+
source buildenvvar
40+
./build.sh ${APPNAME}
3241
- deploy:
3342
name: Running MasterScript.
3443
command: |
35-
./awsconfiguration.sh $DEPLOY_ENV
44+
#./awsconfiguration.sh $DEPLOY_ENV
3645
source awsenvconf
3746
./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-deployvar
3847
source buildenvvar

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ APP_NAME=$1
44
UPDATE_CACHE=""
55
echo "NODE ENV: $NODE_ENV"
66
echo "BABEL ENV: $BABEL_ENV"
7-
docker-compose -f docker/docker-compose.yml build --build-arg NODE_ENV=$NODE_ENV --build-arg BABEL_ENV=$BABEL_ENV $APP_NAME
7+
docker-compose -f docker/docker-compose.yml build --build-arg NODE_ENV=$NODE_ENV --build-arg BABEL_ENV=$BABEL_ENV --build-arg FILE_PICKER_API_KEY=$FILE_PICKER_API_KEY --build-arg FORCE_DEV=$FORCE_DEV $APP_NAME
88
docker create --name app $APP_NAME:latest
99

1010
if [ -d node_modules ]

docker/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@ FROM node:latest
33
ARG NODE_ENV
44
ARG BABEL_ENV
55

6+
ARG FILE_PICKER_API_KEY
7+
ARG FORCE_DEV
8+
69
ENV NODE_ENV=$NODE_ENV
710
ENV BABEL_ENV=$BABEL_ENV
11+
ENV FILE_PICKER_API_KEY=$FILE_PICKER_API_KEY
12+
ENV FORCE_DEV=$FORCE_DEV
813

914
# Copy the current directory into the Docker image
1015
COPY . /challenge-engine-ui

0 commit comments

Comments
 (0)