Skip to content

Commit dba055b

Browse files
authored
Merge pull request #61 from uoregon-libraries/release/4.2.0
Release/4.2.0
2 parents 0065f07 + b3e28d1 commit dba055b

File tree

18 files changed

+53
-48
lines changed

18 files changed

+53
-48
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
!/docker/images/testfile/test-world*
44
/.env
55
/docker-compose.override.yml
6+
/compose.override.yml
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# This file is used to run builds on systems where installing the RAIS
22
# dependencies is too cumbersome or simply undesirable. This is most easily
33
# used via the `scripts/buildrun.sh` command.
4-
version: "3.4"
5-
64
volumes:
75
gopkg: {}
86
gocache: {}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# Copy this to docker-compose.override.yml and modify as needed. This file
1+
# Copy this to compose.override.yml and modify as needed. This file
22
# adds some dev-friendly container magic to the mix:
33
#
44
# - All binaries are mounted into the container so you can test out local changes
55
# - RAIS directly exposes its port to the host machine for quick debugging
6-
version: "3.4"
76
services:
87
rais:
98
# Uncomment one of these if you'd like to use an image built by `make

docker-compose.yml renamed to compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
# This describes a self-contained demo of RAIS, using nginx to serve up the
22
# static pages. This isn't a production configuration file!!
33
#
4-
# If you don't set up an override file (docker-compose.override-example.yml,
4+
# If you don't set up an override file (compose.override-example.yml,
55
# for instance), this will just use the stable version of RAIS from dockerhub.
66
#
77
# Put JP2s into docker/images and the apache entrypoint script will add them to
88
# the images served by from RAIS.
9-
version: "3.4"
10-
119
services:
1210
rais:
1311
image: uolibraries/rais

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ RUN groupadd -r rais && useradd -r -g rais rais
5151
RUN apt-get update -y && apt-get upgrade -y && \
5252
apt-get install -y libopenjp2-7 imagemagick
5353

54-
ENV RAIS_TILEPATH /var/local/images
55-
ENV RAIS_PLUGINS "*.so"
54+
ENV RAIS_TILEPATH=/var/local/images
55+
ENV RAIS_PLUGINS="*.so"
5656
RUN touch /etc/rais.toml && chown rais:rais /etc/rais.toml
5757
COPY --from=build /opt/rais-src/bin /opt/rais/
5858

docker/Dockerfile-alpine

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ RUN addgroup -S rais && adduser -S rais -G rais
4343
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
4444
RUN apk add --no-cache openjpeg
4545

46-
ENV RAIS_TILEPATH /var/local/images
47-
ENV RAIS_PLUGINS "-"
46+
ENV RAIS_TILEPATH=/var/local/images
47+
ENV RAIS_PLUGINS="-"
4848
RUN touch /etc/rais.toml && chown rais:rais /etc/rais.toml
4949

5050
# Though we compile everything, we want our default alpine image tiny, so we offer *no* plugins

docker/README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
Docker
2-
===
1+
# Docker
32

43
This directory contains everything necessary to run RAIS under Docker,
5-
including a test image for the docker-compose-based demo.
4+
including a test image for the compose-based demo.
65

7-
Building docker images
8-
---
6+
## Building docker images
97

108
The easiest way to use these is from the parent directory's `Makefile` via
119
`make docker`.
1210

13-
Running the demo
14-
---
11+
## Running the demo
1512

1613
From the project root:
1714

@@ -23,5 +20,5 @@ export URL=http://192.168.0.5
2320
cp /some/jp2/sources/*.jp2 ./docker/images/
2421

2522
# Run nginx and RAIS
26-
docker-compose up
23+
docker compose up
2724
```

docker/demo-rais-entry.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if test "$url" = ""; then
1010
echo "No URL provided; defaulting to 'http://localhost'"
1111
echo "If you can't see images, try an explicitly-set URL, e.g.:"
1212
echo
13-
echo " URL="http://192.168.0.5" docker-compose up"
13+
echo " URL="http://192.168.0.5" docker compose up"
1414
url="http://localhost"
1515
fi
1616

docker/hub.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Supported tags and respective `Dockerfile` links
22

3-
- [`4`, `4.1`, `4.1.4`, `latest` (*docker/Dockerfile*)](https://github.com/uoregon-libraries/rais-image-server/blob/v4.1.4/docker/Dockerfile)
4-
- [`4-alpine`, `4.1-alpine`, `4.1.4-alpine`, `alpine` (*docker/Dockerfile-alpine*)](https://github.com/uoregon-libraries/rais-image-server/blob/v4.1.4/docker/Dockerfile-alpine)
3+
- [`4`, `4.2`, `4.2.0`, `latest` (*docker/Dockerfile*)](https://github.com/uoregon-libraries/rais-image-server/blob/v4.2.0/docker/Dockerfile)
4+
- [`4-alpine`, `4.2-alpine`, `4.2.0-alpine`, `alpine` (*docker/Dockerfile-alpine*)](https://github.com/uoregon-libraries/rais-image-server/blob/v4.2.0/docker/Dockerfile-alpine)
55
- [`3`, `3.3`, `3.3.2`, (*docker/Dockerfile*)](https://github.com/uoregon-libraries/rais-image-server/blob/v3.3.2/docker/Dockerfile)
66
- [`3-alpine`, `3.3-alpine`, `3.3.2-alpine` (*docker/Dockerfile*)](https://github.com/uoregon-libraries/rais-image-server/blob/v3.3.2/docker/Dockerfile-alpine)
77

docker/s3demo/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ alpine image is *much* faster to build, but doesn't contain any plugins.
2929

3030
Once that's done, you will want to put an override for the s3 demo so it uses
3131
your local image. Something like this can be put into
32-
`docker-compose.override.yml` in this (the s3demo) directory:
32+
`compose.override.yml` in this (the s3demo) directory:
3333

3434
```
3535
version: "3.4"
@@ -54,7 +54,7 @@ default. No actual S3 environment necessary!
5454

5555
Run the minio container:
5656

57-
`docker-compose up minio`
57+
`docker compose up minio`
5858

5959
Create images:
6060

@@ -84,7 +84,7 @@ here, however, so if you are unfamiliar with AWS, go with the easy way above.
8484

8585
### Start the stack
8686

87-
Run `docker-compose up` and visit `http://localhost`. Gaze upon your glorious
87+
Run `docker compose up` and visit `http://localhost`. Gaze upon your glorious
8888
images, lovingly served up by RAIS.
8989

9090
Caveats
@@ -99,7 +99,7 @@ production use. Some caveats:
9999
- If you have non-images in your S3 bucket, behavior is undefined
100100
- If you're running anything else on your server at port 80, this demo won't
101101
work as-is. You may have to customize your setup (e.g., with a
102-
`docker-compose.override.yml` file)
102+
`compose.override.yml` file)
103103

104104
Development
105105
---
@@ -108,5 +108,5 @@ Don't hack up the demo unless you want pain. The demo server is a mess, and
108108
the setup is a little hacky. It's here to provide a quick demo, not showcase
109109
elegant solutions to a problem.
110110

111-
If you are a masochist, however, make sure you re-run "docker-compose build"
111+
If you are a masochist, however, make sure you re-run "docker compose build"
112112
anytime you change the codebase or the go templates.

0 commit comments

Comments
 (0)