You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-15Lines changed: 34 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,16 @@ If your computer is behind a network proxy, this may cause issues related to usi
49
49
Though ANMS can be run behind a proxy; building the ANMS Docker images from behind a network proxy may result in errors.
50
50
51
51
The first steps in each of the container image `Dockerfile` is to attempt to download an APLNIS root CA to validate the APLNIS HTTPS proxy.
52
-
When building images outside of the APLNIS, this download will gracefully fail and the image will not be able to run within the APLNIS.
52
+
When building images outside of the APLNIS, this download will gracefully fail and the image will not be able to run within the APLNIS. The URL for this certificate can be changed for users requiring equivalent functionality on their own networks.
53
+
54
+
### Special Notes on Podman
55
+
56
+
If not otherwise specified, most commands in this document allow podman and docker to be used interchangeably. It is also possible to install an alias (provided in most package managers) to map `docker` to `podman` if desired.
57
+
58
+
Podman, running as a standard user, is typically unable to bind to **low-numbered ports**. It is recommended to edit the `.env` file and uncomment the lines at top for AUTHNZ_PORT and AUTHNZ_HTTPS_PORT to remap those services to a higher port number. In the directions below, you would then use for example http://localhost:8084 and https://localhost:8443 instead of the default.
59
+
60
+
Note: If running on a system where **SELinux** is enabled, the system will not start if the appropriate security groups have not been defined. As an alternative, the `security_opt` sections can be commented out in the *-compose.yml files if required.
61
+
53
62
54
63
### Upgrading ANMS
55
64
@@ -63,32 +72,41 @@ The following command sequence uses standard Docker commands to stop all contain
The current ANMS capability is designed to run on `localhost` and on a development virtual machine.
69
-
This guide presumes that you can either connect via a VMRC remote console or with ssh tunnelling to the machine, hence the use of `localhost` in db connection information and in URLs.
70
-
If you deploy this to a VM, you will need to replace `localhost` with the hostname of the machine where it is deployed.
76
+
## ANMS build and deploy
71
77
72
-
### Special Notes on Podman
78
+
##Quickstart
73
79
74
-
If not otherwise specified, most commands in this document allow podman and docker to be used interchangeably. It is also possible to install an alias (provided in most package managers) to map `docker` to `podman` if desired.
80
+
`./quickstart.sh`
75
81
76
-
Podman, running as a standard user, is typically unable to bind to **low-numbered ports**. It is recommended to edit the `.env` file and uncomment the lines at top for AUTHNZ_PORT and AUTHNZ_HTTPS_PORT to remap those services to a higher port number. In the directions below, you would then use for example http://localhost:8084 and https://localhost:8443 instead of the default.
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.
77
83
78
-
Note: If running on a system where **SELinux** is enabled, the system will not start if the appropriate security groups have not been defined. As an alternative, the `security_opt` sections can be commented out in the *-compose.yml files if required.
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.
79
85
86
+
To stop the system use `podman compose -f testenv-compose.yml -f docker-compose.yml down`.
80
87
81
-
## ANMS build and deploy
88
+
To start the system in the future use `podman compose -f testenv-compose.yml up`and `podman compose up`.
82
89
90
+
## Manual Startup
83
91
Choose the appropriate docker, podman or podman-compose commands in the directions below as appropriate for your system.
84
92
85
-
- Select appropriate profile(s) as desired.
86
-
- If no profiles are set, a "light" deployment of the ANMS focused on browser-less API-only ANMS users.
87
-
- For a full deployment: `export COMPOSE_PROFILES=full`
88
-
- For a full deployment with additional developer tools: `export COMPOSE_PROFILES=full,dev`
93
+
- Edit `.env` file as appropriately
94
+
- Select appropriate profile(s) as desired.
95
+
- Core ANMS services are always started.
96
+
- The 'full' profile starts up all UI and related services.
97
+
- The 'dev' profile adds development tools, such as adminer
98
+
- Profiles can be set with COMPOSE_PROFILES in the .env file. The default includes full and dev profiles.
99
+
- Adjust network ports as necessary to avoid any conflicts or permissions issues.
100
+
- For rootless podman, the AUTHNZ_* ports must be changed to higher number ports to avoid permissions issues.
101
+
- The corresponding lines can be uncommented in .env.
102
+
- SELinux Security Labels Setup
103
+
- If your system does not support security labels, no additional steps are needed.
104
+
- If security labels are supported and you are unable to define them, they can be disabled for development purposes:
@@ -214,6 +231,8 @@ Refer to the `.env` file for port binding overrides, or `docker-compose.yml` for
214
231
215
232
### ANMS-UI is not visible at hostname
216
233
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
+
217
236
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).
218
237
219
238
If you go to your browser and hostname:9030 (replace hostname with the server's hostname) and you see the ANMS UI,
0 commit comments