File tree Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ ENV CI_TEST=true
66COPY agent/* agent/
77RUN rm contrast_security.yaml || true
88COPY contrast_security.yaml contrast_security.yaml
9+ COPY config/contrast_security.yml config/contrast_security.yml
910RUN gem install ./agent/contrast-agent.gem
1011
1112CMD tail -f /tmp/tail_me
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ RUN bundle config set with 'passenger_max'
1010
1111RUN bundle update
1212
13+ # Copy configuration files to root directory:
14+ RUN cp /app/contrast_security.yaml /app/spec/dummy/contrast_security.yaml
15+ RUN cp /app/config/contrast_security.yml /app/spec/dummy/config/contrast_security.yml
16+
1317# So we may use whatever command we want to trigger rake, to be sure
1418# that the agent is not braking the rake task
1519
@@ -18,4 +22,4 @@ RUN bundle exec rake db:version
1822
1923# Name and run the application
2024RUN ./docker/app_name_generator.sh Passenger_max >> /tmp/app_name.txt
21- CMD redis-server & cat /tmp/app_name.txt && CONTRAST_CONFIG_PATH=/app/contrast_security.yaml CONTRAST__APPLICATION__NAME=$(cat /tmp/app_name.txt) PASSENGER_START_TIMEOUT=300 bundle exec rails s -p $PORT
25+ CMD redis-server & cat /tmp/app_name.txt && CONTRAST__APPLICATION__NAME=$(cat /tmp/app_name.txt) PASSENGER_START_TIMEOUT=300 bundle exec rails s -p $PORT
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ RUN bundle config set with 'passenger_min'
1010
1111RUN bundle update
1212
13+ # Copy configuration files to root directory:
14+ RUN cp /app/contrast_security.yaml /app/spec/dummy/contrast_security.yaml
15+ RUN cp /app/config/contrast_security.yml /app/spec/dummy/config/contrast_security.yml
16+
1317# So we may use whatever command we want to trigger rake, to be sure
1418# that the agent is not braking the rake task
1519
@@ -18,4 +22,4 @@ RUN bundle exec rake db:version
1822
1923# Name and run the application
2024RUN ./docker/app_name_generator.sh Passenger_min >> /tmp/app_name.txt
21- CMD redis-server & cat /tmp/app_name.txt && CONTRAST_CONFIG_PATH=/app/contrast_security.yaml CONTRAST__APPLICATION__NAME=$(cat /tmp/app_name.txt) PASSENGER_START_TIMEOUT=300 bundle exec rails s -p $PORT
25+ CMD redis-server & cat /tmp/app_name.txt && CONTRAST__APPLICATION__NAME=$(cat /tmp/app_name.txt) PASSENGER_START_TIMEOUT=300 bundle exec rails s -p $PORT
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ if [ $PAT_VALID == true ] && [ $GH_USERNAME_VALID == true ]; then
1919 echo
2020
2121 # Build images from config:
22- # build_docker_images
22+ build_docker_images
2323
2424 # Push the images
2525 # Comment this out for local debug and troubleshooting, first test run.
You can’t perform that action at this time.
0 commit comments