Skip to content

Commit

Permalink
Use docker image in production
Browse files Browse the repository at this point in the history
Update the docker compose production configuration to use a published
image like dlme-airflow. And also add instructions for building and
publishing the image to the README.
  • Loading branch information
edsu committed Jun 29, 2024
1 parent a6d32db commit 5f3cc52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,15 @@ pytest

## Deployment

First you'll need to build a Docker image and publish it DockerHub:

```
DOCKER_DEFAULT_PLATFORM="linux/amd64" docker build . -t suldlss/rialto-airflow:latest
docker push suldlss/rialto-airflow
```

Deployment to https://sul-rialto-airflow-dev.stanford.edu/ is handled like other SDR services using Capistrano. You'll need to have Ruby installed and then:

```
gem install bundler
bundle install
bundle exec cap dev deploy
```
2 changes: 1 addition & 1 deletion docker-compose.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ x-airflow-common:
# Comment the image line, place your Dockerfile in the directory where you placed the docker-compose.yaml
# and uncomment the "build" line below, Then run `docker-compose build` to build the images.
#image: ${AIRFLOW_IMAGE_NAME:-apache/airflow:2.9.2}
build: .
image: ${AIRFLOW_IMAGE_NAME:-suldlss/rialto-airflow:latest}
environment:
&airflow-common-env
AIRFLOW_UID: 503
Expand Down

0 comments on commit 5f3cc52

Please sign in to comment.