Skip to content

Commit

Permalink
update and clean up selenium download setup
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhoubk committed Jan 28, 2025
1 parent 6b41484 commit 9ebde5a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 31 deletions.
9 changes: 0 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@ RUN groupadd --system --gid $APP_UID $APP_USER \
RUN mkdir -p /opt/app \
&& chown -R $APP_USER:$APP_USER /opt/app /usr/local/bundle

# RUN mkdir -p /opt/app/tmp/selenium_downloads
# RUN mkdir -p /opt/app/artifacts

# RUN mkdir -p /opt/app/artifacts/Downloads \
# && chown 1200:1201 /opt/app/artifacts/Downloads

# RUN mkdir -p /opt/app/artifacts \
# && chown 1200:1201 /opt/app/artifacts

RUN mkdir -p /home/seluser/Downloads \
&& chown 1200:1201 /home/seluser/Downloads

Expand Down
16 changes: 0 additions & 16 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,6 @@ services:
- artifacts:/opt/app/artifacts
- selenium_downloads:/home/seluser/Downloads

selenium:
image: selenium/standalone-chrome:latest
ports:
- 4444:4444
- 7900:7900
platform: linux/amd64
networks:
default:
aliases:
- selenium.test
shm_size: 2g
volumes:
- artifacts:/opt/app/artifacts
- selenium_downloads:/home/seluser/Downloads

volumes:
artifacts:
selenium_downloads:

4 changes: 0 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ services:
volumes:
- ./:/opt/app:delegated
- selenium_downloads:/home/seluser/Downloads
# - artifacts:/opt/app/artifacts

db:
image: postgres:16.4
Expand Down Expand Up @@ -53,9 +52,6 @@ services:
shm_size: 2g
volumes:
- selenium_downloads:/home/seluser/Downloads
# - artifacts:/opt/app/artifacts
# - artifacts:/home/seluser/Downloads

volumes:
artifacts:
selenium_downloads:
2 changes: 0 additions & 2 deletions spec/support/constants/test_constants.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module CommonHelpers
EXPORT_TMP_PATH = '/opt/app/tmp/cache/downloads'.freeze
# DOWNLOAD_TMP_PATH = '/opt/app/tmp/selenium_downloads'.freeze
DOWNLOAD_TMP_PATH = '/home/seluser/Downloads'.freeze
# DOWNLOAD_TMP_PATH = '/opt/app/artifacts'.freeze
PUBLIC_RECORD_ID = 'berkeley-s7038h'.freeze
RESTRICTED_RECORD_ID = 'berkeley-s7b12n'.freeze
end

0 comments on commit 9ebde5a

Please sign in to comment.