-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates api container to support running tests (#21)
This change replaces testing with the single monolithic container.
- Loading branch information
1 parent
d8317ec
commit 53190a3
Showing
8 changed files
with
101 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Build check | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build-containers: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build containers | ||
run: docker compose build | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Push to hub | ||
run: docker compose push |
Submodule api
updated
12 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
#!/bin/bash | ||
set -e | ||
READY_FILE=/tmp/container_ready | ||
rm -f $READY_FILE | ||
|
||
mkdir -p /var/www/helioviewer.org/cache/tiles | ||
chmod 777 /var/www/helioviewer.org/cache/tiles | ||
|
||
COMPOSER_HOME=/root composer install | ||
/var/www/api.helioviewer.org/vendor/bin/start_hgs2hpc | ||
|
||
pushd /var/www/api.helioviewer.org/install | ||
python3 -m venv venv | ||
venv/bin/python -m pip install -r test_requirements.txt | ||
popd | ||
|
||
bash /root/api_config.sh | ||
|
||
chmod 777 /var/www/api.helioviewer.org/log | ||
|
||
source /etc/apache2/envvars | ||
touch $READY_FILE | ||
/usr/sbin/apache2 -DFOREGROUND |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule helioviewer.org
updated
5 files
+2 −2 | .github/workflows/ci.yml | |
+3,066 −1,473 | package-lock.json | |
+7 −7 | package.json | |
+1 −1 | resources/build/build.xml | |
+3 −11 | resources/js/Media/MovieManagerUI.js |