[CI] Remove seed container from Uffizzi (#19468)
This commit is contained in:
parent
00a9db232b
commit
8c8bc8c9bf
3 changed files with 7 additions and 26 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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}"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue