Skip to content

Commit d682a17

Browse files
author
David Linko
committed
Merge remote-tracking branch 'origin/feature/177-ghcr_container_publishing' into 252-deleting-an-adm
2 parents 1d7c38e + add47e4 commit d682a17

File tree

5 files changed

+18
-11
lines changed

5 files changed

+18
-11
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COMPOSE_PROFILES=full,dev
1515
#MQTT_PORT=11883
1616

1717

18-
DOCKER_IMAGE_PREFIX=localhost/
18+
DOCKER_IMAGE_PREFIX=ghcr.io/nasa-ammos/anms/
1919
DOCKER_IMAGE_TAG=latest
2020

2121
ANMS_VERSION=0

.github/workflows/publish_images.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
push:
66
branches:
77
- main
8-
# For testing: delete this prior to merging PR
9-
- feature/177-ghcr_container_publishing
108
release:
119
types: [published]
1210

@@ -30,11 +28,8 @@ jobs:
3028

3129
- name: Set prefix
3230
run: |
33-
echo "DOCKER_IMAGE_PREFIX=${REGISTRY}/${OWNER,,}/${REPO,,}/" >>${GITHUB_ENV}
34-
echo "DBG: owner = ${REGISTRY}"
35-
echo "DBG: repo = ${REPO}"
31+
echo "DOCKER_IMAGE_PREFIX=${REGISTRY}/${REPO,,}/" >>${GITHUB_ENV}
3632
env:
37-
OWNER: '${{ github.repository_owner }}'
3833
REPO: '${{ github.repository }}'
3934
- name: Set image tag
4035
id: vars

.github/workflows/puppet.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
bundler-cache: true
4848

4949
- name: Install puppet-lint
50-
run: gem install puppet-lint
50+
run: gem install puppet-lint -v 4.3.0
5151

5252
- name: Run puppet-lint
5353
run: puppet-lint puppet --sarif --ignore-paths 'puppet/modules/anms/files/*' > puppet-lint-results.sarif

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ docker stop $(docker ps -q); docker rm $(docker ps --all -q); docker system prun
7979

8080
`./quickstart.sh`
8181

82-
The quickstart script will configure, build, and start the ANMS system for the first time. See comments in the script for additional details, including optional ENV variables to override default behavior.
82+
The quickstart script will configure, pull, and start the ANMS system for the first time. See comments in the script for additional details, including optional ENV variables to override default behavior.
83+
84+
NOTICE: By default, quick start will pull pre-built containers from the github registry (ghcr.io). To force a rebuild, run it as `FORCE_REBULD=y ./quickstart.sh`. See the script header for details.
8385

8486
To stop the system use `podman compose -f testenv-compose.yml -f docker-compose.yml down`.
8587

@@ -104,6 +106,7 @@ Choose the appropriate docker, podman or podman-compose commands in the directio
104106
- Clone this repository recursively (`git clone --recursive https://github.com/NASA-AMMOS/anms.git`)
105107
- Setup Volume containing PKI configuration (certificate chains and private keys):
106108
- `./create_volume.sh ./puppet/modules/apl_test/files/anms/tls`
109+
- OPTIONAL: The next 2 steps will build all ANMS containers. If desired, these steps can be replaced with 'pull'ing prebuilt containers from ghcr.
107110
- Build Core Images using one of the following:
108111
- `docker compose -f docker-compose.yml build`
109112
- `podman compose -f docker-compose.yml build`
@@ -228,6 +231,8 @@ Refer to the `.env` file for port binding overrides, or `docker-compose.yml` for
228231

229232
### ANMS-UI is not visible at hostname
230233

234+
Ensure that you are running with the 'full' profile. This is the default option when using the `.env` file, however some older versions of podman-compose may not parse the COMPOSE_PROFILES ENV variable correctly. If this is the case, specify the profile explicitly in your compose up commands. For example, `podman compose --profile full up`.
235+
231236
Check the startup logs for any errors. If using podman, some port numbers may need to be remapped using the `.env` file to higher numbered ports, or the system configuration modified to adjust permissions (not recommended).
232237

233238
If you go to your browser and hostname:9030 (replace hostname with the server's hostname) and you see the ANMS UI,

quickstart.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
# is not specified the #AUTHNZ_* lines in .env will be uncommented to
2626
# use ports that do not require root permissions.
2727
#
28+
# FORCE_BUILD=y If 'y', all ANMS-specific containers will be built locally.
29+
# Otherwise, prebuilt containers will be pulled from ghcr for quicker startup.
30+
#
2831
# Note: This script was created with assistance from openai/gpt-oss-120b
2932
set -e
3033

@@ -81,8 +84,12 @@ cp docker-compose.no-security-override.yml docker-compose.override.yml
8184
./create_volume.sh ./puppet/modules/apl_test/files/anms/tls
8285

8386
# Build system
84-
${DOCKER_CMD} compose build
85-
87+
if [[ ${FORCE_BUILD:-} == y ]]; then
88+
${DOCKER_CMD} compose --profile full --profile dev build
89+
else
90+
${DOCKER_CMD} compose --profile full --profile dev pull
91+
fi
92+
8693
# Start testenv (unless disabled)
8794
if [[ ${USE_TESTENV:-} != n ]]; then
8895
${DOCKER_CMD} compose -f testenv-compose.yml up -d

0 commit comments

Comments
 (0)