Skip to content

Commit 1fde2d0

Browse files
RUBY-2045 (#102)
* init * Uncommented push images script * Changed contrast config file extension * Restoring defaults * Updating docker agentt base. * Updating Agent dockerfile * Updated base agent docker config copy * Testing config files delivery * Removed dummy yaml config * Updated passenger config path * Testing passenger config paths * Updated passenger docker files * Restoring passenger dockerfiles * Added Config path env back * Updated Passenger docker files * Moving Configuration files for passenger
1 parent efd9a02 commit 1fde2d0

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

docker/Dockerfile_agent

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ ENV CI_TEST=true
66
COPY agent/* agent/
77
RUN rm contrast_security.yaml || true
88
COPY contrast_security.yaml contrast_security.yaml
9+
COPY config/contrast_security.yml config/contrast_security.yml
910
RUN gem install ./agent/contrast-agent.gem
1011

1112
CMD tail -f /tmp/tail_me

docker/Dockerfile_passenger_max

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ RUN bundle config set with 'passenger_max'
1010

1111
RUN 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
2024
RUN ./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

docker/Dockerfile_passenger_min

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ RUN bundle config set with 'passenger_min'
1010

1111
RUN 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
2024
RUN ./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

scripts/push_github_images.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)