Skip to content

Commit 84e77fd

Browse files
committed
added example commands for image release
1 parent e8acee3 commit 84e77fd

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,30 @@ echo "deb [trusted=yes] http://192.168.0.100/debian ./" | tee -a /etc/apt/source
4545

4646
[Instructions how to use self-hosted container registry.](./utils/containers_registry/README.md)
4747

48+
#### Building & pushing a particular release tag
49+
```bash
50+
export REGISTRY_HOSTNAME=geonosis:5000
51+
export AEGIS_ROS_VERSION=<TAG>
52+
export AEGIS_CONTAINER_VERSION=<TAG>
53+
54+
# if the building is happening on the same machine as PPA server, add argument:
55+
# --add-host $(hostname):$(hostname -I | awk '{print $1}')
56+
podman build . -t ceai/aegis_dev:${AEGIS_CONTAINER_VERSION} --build-arg AEGIS_ROS_TAG=${AEGIS_ROS_VERSION}
57+
podman tag ceai/aegis_dev:${AEGIS_CONTAINER_VERSION} ${REGISTRY_HOSTNAME}/ceai/aegis:${AEGIS_CONTAINER_VERSION}
58+
podman push ${REGISTRY_HOSTNAME}/ceai/aegis:${AEGIS_CONTAINER_VERSION}
59+
```
60+
61+
#### Pulling & entering a particular release tag
62+
```bash
63+
export REGISTRY_HOSTNAME=geonosis:5000
64+
export AEGIS_CONTAINER_VERSION=<TAG>
65+
66+
podman pull ${REGISTRY_HOSTNAME}/ceai/aegis:${AEGIS_CONTAINER_VERSION}
67+
68+
toolbox create --image ${REGISTRY_HOSTNAME}/ceai/aegis:${AEGIS_CONTAINER_VERSION}
69+
toolbox enter aegis-${AEGIS_CONTAINER_VERSION}
70+
```
71+
4872
---
4973

5074
### Known issues:

0 commit comments

Comments
 (0)