diff --git a/README.md b/README.md index 9cf9f48..1bd867d 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,9 @@ To run the dev environment, install [Docker](https://docs.docker.com/get-docker/ Once installed clone this repo and run docker compose: ```bash -git clone --recurse-submodules https://github.com/Helioviewer-Project/helioviewer.org-docker.git +git clone --recurse-submodules https://github.com/dgarciabriseno/helioviewer.org-docker.git cd helioviewer.org-docker +git checkout jpip docker compose up -d --wait ``` diff --git a/compose.yaml b/compose.yaml index 9e896a5..d61253e 100644 --- a/compose.yaml +++ b/compose.yaml @@ -74,6 +74,14 @@ services: target: /var/www/api.helioviewer.org - jp2_volume:/tmp/jp2 - cache:/var/www/helioviewer.org/cache + jpip: + image: dgarciabriseno/helioviewer-jpip + build: + dockerfile: ./compose/dockerfiles/esajpip.Dockerfile + ports: + - 8090:8090 + volumes: + - jp2_volume:/home/esajpip/images cli: image: dgarciabriseno/helioviewer-cli-dev build: diff --git a/compose/dockerfiles/cli.Dockerfile b/compose/dockerfiles/cli.Dockerfile index 9da5efb..14f8259 100644 --- a/compose/dockerfiles/cli.Dockerfile +++ b/compose/dockerfiles/cli.Dockerfile @@ -3,7 +3,7 @@ WORKDIR /root COPY api/install/kakadu/Kakadu_v6_4_1-00781N_Linux-64-bit-Compiled.tar.gz /root/kdu.tar.gz RUN tar xzf kdu.tar.gz -FROM alpine +FROM --platform=linux/x86_64 alpine # set home to future user home directory ENV HOME=/home/admin @@ -11,14 +11,19 @@ ENV HOME=/home/admin COPY --from=builder /root/bin/* /usr/local/bin COPY --from=builder /root/lib/* /usr/lib WORKDIR $HOME -RUN adduser -D admin \ - && mkdir -p /tmp/jp2 && chown -R admin:admin /tmp/jp2 \ - && apk update \ - && apk add --virtual build-deps gcc python3-dev musl-dev mariadb-dev \ - && apk add --no-cache python3 expect gcompat mariadb-connector-c \ - && python3 -m venv venv \ - && venv/bin/pip install --no-cache-dir numpy sunpy matplotlib scipy glymur mysqlclient \ - && apk del --no-cache build-deps +RUN <