Skip to content

Commit 2d8b929

Browse files
authored
documentation on testing (#407)
1 parent f286139 commit 2d8b929

File tree

2 files changed

+83
-0
lines changed

2 files changed

+83
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1313
- Extractors can now specify an extractor_key and an owner (email address) when sending a
1414
registration or heartbeat to Clowder that will restrict use of that extractor to them.
1515
- Added a dropdown menu to select all spaces, your spaces and also the spaces you have access to. [#374](https://github.com/clowder-framework/clowder/issues/374)
16+
- Documentation on how to do easy testing of pull requests
1617

1718
## Fixed
1819
- Updated lastModifiesDate when updating file or metadata to a dataset, added lastModified to UI [386](https://github.com/clowder-framework/clowder/issues/386)

TESTING.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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+
CLOWDER_ADMINS[email protected]
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

Comments
 (0)