[CI] Remove seed container from Uffizzi (#19468)

This commit is contained in:
Mac Siri 2023-05-16 09:48:56 -04:00 committed by GitHub
parent 00a9db232b
commit 8c8bc8c9bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 26 deletions

View file

@ -77,7 +77,7 @@ RUN ./scripts/bundle.sh
## Yarn install
RUN bash -c yarn install --dev
ENTRYPOINT ["./scripts/entrypoint.sh"]
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0", "-p", "3000"]
# Document that we're going to expose port 3000
EXPOSE 3000
# Use Bash as the default command
CMD ["/usr/bin/bash"]

View file

@ -30,27 +30,7 @@ services:
deploy:
resources:
limits:
memory: 4000M
seed:
image: "${APP_IMAGE}"
container_name: forem_seed
depends_on:
- rails
- redis
- db
environment:
RAILS_ENV: development
REDIS_SESSIONS_URL: redis://localhost:6379
REDIS_SIDEKIQ_URL: redis://localhost:6379
REDIS_URL: redis://localhost:6379
DATABASE_URL: postgresql://forem:forem@localhost:5432/PracticalDeveloper_development
entrypoint: ["dockerize", "-wait", "tcp://localhost:5432", "-wait", "tcp://localhost:6379", "-wait", "http://localhost:3000", "-timeout", "5400s"]
command: ["./uffizzi/db_seed.sh"]
deploy:
resources:
limits:
memory: 500M
memory: 4000M
sidekiq:
image: "${APP_IMAGE}"

View file

@ -45,6 +45,7 @@ case "$@" in
bootstrap)
echo "Running rake app_initializer:setup..."
bundle exec rake app_initializer:setup
bundle exec rails db:seed
;;
*)
echo "Running command:"
@ -54,4 +55,4 @@ case "$@" in
esac
bundle exec rails server -b 0.0.0.0 -p 3000
bundle exec rails server -b 0.0.0.0 -p 3000