Commit 545fa3fd authored by Zac Wood's avatar Zac Wood

install crontab on docker image

parent bb969e76
Pipeline #5202 passed with stage
in 7 minutes and 56 seconds
stages:
- test
# - test
- build
test:
image: starefossen/ruby-node:latest
stage: test
script:
- cd schedules
- bundle install
- yarn install
- rails db:migrate
# test:
# image: starefossen/ruby-node:latest
# stage: test
# script:
# - cd schedules
# - bundle install
# - yarn install
# - rails db:migrate
# - rails test
# - rubocop
build:
stage: build
retry: 2
retry: 1
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
......
......@@ -12,6 +12,9 @@ RUN bundle install --without development test
RUN yarn install
RUN SECRET_KEY_BASE=1 rails assets:precompile
RUN apt-get update
RUN apt-get install -y cron
RUN whenever --update-crontab
CMD [ "rails server" ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment