Skip to content

Commit

Permalink
Use APP_NAME inside docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
sanG-github committed Apr 9, 2024
1 parent 426dec6 commit ec1b1ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .template/spec/support/serverspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module ServerSpecHelpers
# Prebuild and run docker image before running the test
# Because the docker api does not support docker compose
def self.test_container
container_name = "#{ENV.fetch('CONTAINERIZED_APP_NAME')}-test"
container_name = "#{ENV.fetch('APP_NAME')}-test"
container_id = `docker ps -qf "name=#{container_name}"`

Docker::Container.get(container_id.strip)
Expand Down

0 comments on commit ec1b1ec

Please sign in to comment.