-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use podman-compose for testing Jammy and EL9 packages * Allow triggering workflows manually
- Loading branch information
1 parent
db013aa
commit 78ba46d
Showing
16 changed files
with
304 additions
and
157 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
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,2 +1,3 @@ | ||
/.bundle | ||
/.vagrant | ||
/.venv |
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,43 @@ | ||
ARG TARGET=server | ||
ARG DOCKER_IMAGE_NAME=ubuntu | ||
ARG DOCKER_IMAGE_TAG=22.04 | ||
|
||
FROM ubuntu:22.04 AS install_ubuntu_22.04 | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN set -ex \ | ||
&& apt-get update \ | ||
&& apt-get install -y \ | ||
curl \ | ||
dialog \ | ||
gnupg \ | ||
locales \ | ||
openssh-server \ | ||
rsync \ | ||
sudo \ | ||
&& apt-get clean | ||
|
||
RUN locale-gen en_US.UTF-8 | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
ENV TZ=UTC | ||
|
||
FROM install_${DOCKER_IMAGE_NAME}_${DOCKER_IMAGE_TAG} as server | ||
|
||
RUN useradd --home-dir /home/ubuntu --system ubuntu | ||
|
||
RUN mkdir -p /etc/sudoers.d/ && echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/ubuntu | ||
|
||
RUN ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && echo ${TZ} > /etc/timezone | ||
|
||
COPY --chown=ubuntu:ubuntu . /src | ||
|
||
EXPOSE 22 | ||
EXPOSE 80 | ||
EXPOSE 8000 | ||
|
||
CMD [ "/sbin/init" ] | ||
|
||
FROM ${TARGET} |
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,20 +1,59 @@ | ||
# Instructions | ||
|
||
This Vagrant environment is based on the official Ubuntu 22.04 Vagrant box | ||
`ubuntu/jammy64`. | ||
## Software requirements | ||
|
||
Provision the Vagrant box using our official repository: | ||
- Podman | ||
- crun >= 1.14.4 | ||
- Python 3 | ||
|
||
vagrant up | ||
This environment has been tested with Podman 3.4.4 and podman-compose 1.1.0 | ||
and is based on the official `ubuntu:22.04` Docker image. | ||
|
||
Alternatively, provision the box using the local repository (`../jammy`), | ||
which needs to be previously built: | ||
## Set up | ||
|
||
# Build the packages and the local repo. Then create the box. | ||
$ make -C ../jammy | ||
$ LOCAL_REPOSITORY="yes" vagrant up | ||
Create a virtual environment and activate it: | ||
|
||
Once is up you should be able to access to the web interfaces: | ||
```shell | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
``` | ||
|
||
- Access to Dashboard: http://192.168.33.2 | ||
- Access to Storage Service: http://192.168.33.2:8000 | ||
Install the Python requirements: | ||
|
||
```shell | ||
python3 -m pip install -r requirements.txt | ||
``` | ||
|
||
## Starting the Compose environment | ||
|
||
Start the Compose services: | ||
|
||
```shell | ||
podman-compose up --detach | ||
``` | ||
|
||
## Test installing packages | ||
|
||
Test packages from the published Archivematica repository: | ||
|
||
```shell | ||
podman-compose exec --user ubuntu archivematica /am-packbuild/debs/jammy-testing/install.sh | ||
``` | ||
|
||
Alternatively, test using the local repository (`../jammy`), which needs to be | ||
previously built: | ||
|
||
```shell | ||
make -C ../jammy | ||
``` | ||
|
||
Test using the local repository: | ||
|
||
```shell | ||
podman-compose exec --env LOCAL_REPOSITORY="yes" --user ubuntu archivematica /am-packbuild/debs/jammy-testing/install.sh | ||
``` | ||
|
||
Once installation finishes you should be able to access to the web interfaces: | ||
|
||
- Access to Dashboard: <http://localhost:8000> | ||
- Access to Storage Service: <http://localhost:8001> |
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
--- | ||
name: archivematica-jammy-testing | ||
|
||
services: | ||
|
||
archivematica: | ||
build: | ||
args: | ||
DOCKER_IMAGE_NAME: "${DOCKER_IMAGE_NAME:-ubuntu}" | ||
DOCKER_IMAGE_TAG: "${DOCKER_IMAGE_TAG:-22.04}" | ||
TARGET: server | ||
ports: | ||
- "2222:22" | ||
- "8000:80" | ||
- "8001:8000" | ||
volumes: | ||
- ".:/src" | ||
- "../../:/am-packbuild" |
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 @@ | ||
git+https://github.com/containers/podman-compose.git@2681566580b4eaadfc5e6000ad19e49e56006e2b#egg=podman-compose |
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,2 +1,3 @@ | ||
/.bundle | ||
/.vagrant | ||
/.venv |
Oops, something went wrong.