Skip to content

Commit

Permalink
Enable kakadu
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarciabriseno committed May 28, 2024
1 parent 0fbd9cc commit 6b6066d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: helioviewer
services:
database:
image: dgarciabriseno/helioviewer-db-dev
platform: linux/amd64
build:
dockerfile: ./compose/dockerfiles/db.Dockerfile
environment:
Expand Down Expand Up @@ -82,7 +83,7 @@ services:
condition: service_healthy
build:
dockerfile: ./compose/dockerfiles/movie_builder.Dockerfile
platform: linux/x86_64
platform: linux/amd64
volumes:
- type: bind
source: ./api
Expand Down
9 changes: 9 additions & 0 deletions compose/dockerfiles/db.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ COPY api/install .
COPY compose/2021_06_01__00_01_21_347__SDO_AIA_AIA_171.jp2 img/2021_06_01__00_01_21_347__SDO_AIA_AIA_171.jp2
COPY compose/2021_06_01__00_01_29_132__SDO_AIA_AIA_304.jp2 img/2021_06_01__00_01_29_132__SDO_AIA_AIA_304.jp2
COPY compose/scripts/headless_setup.sh .
COPY api/install/kakadu/Kakadu_v6_4_1-00781N_Linux-64-bit-Compiled.tar.gz kdu.tar.gz
RUN <<EOF
tar xzf kdu.tar.gz
mv bin/* /usr/local/bin
mv lib/* /usr/lib
EOF

RUN mkdir -p /tmp/jp2
RUN cp img/* /tmp/jp2
Expand All @@ -17,5 +23,8 @@ RUN <<EOF
./headless_setup.sh
mariadb -phelioviewer -e "CREATE USER 'helioviewer'@'%' IDENTIFIED BY 'helioviewer'"
mariadb -phelioviewer -e "GRANT ALL ON helioviewer.* to 'helioviewer'@'%'"
sed 's!server = localhost!server=!g' settings/settings.example.cfg > settings/settings.cfg
sed -i 's!/mnt/data/!/tmp/!g' settings/settings.cfg
expect -c 'spawn python3 downloader.py -d hv_soho -s "2023-12-01 00:00:00" -e "2023-12-01 01:00:00"; expect "Sleeping for 30 minutes"'
pkill mariadb
EOF

0 comments on commit 6b6066d

Please sign in to comment.