|
| 1 | +# Testing Clowder PR |
| 2 | + |
| 3 | +Download the [docker-compose.yml](https://raw.githubusercontent.com/clowder-framework/clowder/develop/docker-compose.yml) file in a new folder. Next create a .env file with the following data: |
| 4 | + |
| 5 | +```ini |
| 6 | +COMPOSE_PROJECT_NAME=clowder |
| 7 | +TRAEFIK_HOST=Host:yourmachine.ncsa.illinois.edu; |
| 8 | +TRAEFIK_HTTP_PORT=80 |
| 9 | +TRAEFIK_HTTPS_PORT=443 |
| 10 | +TRAEFIK_HTTPS_OPTIONS=TLS |
| 11 | +TRAEFIK_ACME_ENABLE=true |
| 12 | +TRAEFIK_ACME_EMAIL[email protected] |
| 13 | +TRAEFIK_HTTP_REDIRECT=Redirect.EntryPoint:https |
| 14 | +CLOWDER_SSL=true |
| 15 | + |
| 16 | +``` |
| 17 | + |
| 18 | +Next create a docker-compose.override.yml file: |
| 19 | + |
| 20 | +```yaml |
| 21 | +version: '3.5' |
| 22 | + |
| 23 | +services: |
| 24 | + # point to the PR image (in this case PR-404) |
| 25 | + clowder: |
| 26 | + image: ghcr.io/clowder-framework/clowder:PR-404 |
| 27 | + |
| 28 | + # add any more extractors if you want |
| 29 | + # extract preview image |
| 30 | + imagepreview: |
| 31 | + image: clowder/extractors-image-preview:latest |
| 32 | + restart: unless-stopped |
| 33 | + networks: |
| 34 | + - clowder |
| 35 | + depends_on: |
| 36 | + rabbitmq: |
| 37 | + condition: service_started |
| 38 | + environment: |
| 39 | + - RABBITMQ_URI=${RABBITMQ_URI:-amqp://guest:guest@rabbitmq/%2F} |
| 40 | + |
| 41 | + # extract image metadata |
| 42 | + imagemetadata: |
| 43 | + image: clowder/extractors-image-metadata:latest |
| 44 | + restart: unless-stopped |
| 45 | + networks: |
| 46 | + - clowder |
| 47 | + depends_on: |
| 48 | + rabbitmq: |
| 49 | + condition: service_started |
| 50 | + environment: |
| 51 | + - RABBITMQ_URI=${RABBITMQ_URI:-amqp://guest:guest@rabbitmq/%2F} |
| 52 | + |
| 53 | + # digest |
| 54 | + digest: |
| 55 | + image: clowder/extractors-digest:latest |
| 56 | + restart: unless-stopped |
| 57 | + networks: |
| 58 | + - clowder |
| 59 | + depends_on: |
| 60 | + rabbitmq: |
| 61 | + condition: service_started |
| 62 | + environment: |
| 63 | + - RABBITMQ_URI=${RABBITMQ_URI:-amqp://guest:guest@rabbitmq/%2F} |
| 64 | +``` |
| 65 | +
|
| 66 | +It is best practice to start with a `docker-compose pull` to make sure you have all the latest versions of the containers, followed by a `docker-compose up -d`. This will start all containers. You should be able to go to https://yourmachine.ncsa.illinois.edu. |
| 67 | + |
| 68 | +If this is the first time running the stack (or if you removed the mongo database), you will need to create the initial user again: |
| 69 | + |
| 70 | +```bash |
| 71 | +docker run --rm -it \ |
| 72 | + --network clowder_clowder \ |
| 73 | + -e "FIRSTNAME=Admin" \ |
| 74 | + -e "LASTNAME=User" \ |
| 75 | + -e "ADMIN=true" \ |
| 76 | + -e "PASSWORD=areallygoodpassword" \ |
| 77 | + |
| 78 | + -e "MONGO_URI=mongodb://mongo:27017/clowder" \ |
| 79 | + clowder/mongo-init |
| 80 | +``` |
| 81 | + |
| 82 | + |
0 commit comments