diff --git a/README.md b/README.md index be0f233aefc3dbeb15aa3f4d05b69fbbcdfdf7f7..1b8045101429fd47c64980b5d26e7431d45ab35c 100644 --- a/README.md +++ b/README.md @@ -7,21 +7,28 @@ This container hosts SDElements Just In Time Training (JITT) content using Nginx ## Local build -Download NGINX version 1.19.0 as a tarball from `https://dcar.dsop.io/repomap/opensource/nginx/nginx` -Follow the instructions under "Downloading and Running the image". For this example, we will use `nginx-1.19.0.tar` as the file downloaded. +1. Download NGINX version 1.19.0 as a tarball from `https://dcar.dsop.io/repomap/opensource/nginx/nginx`. For this example, we will use `nginx-1.19.0.tar` as the file downloaded. -Load the tarball into docker + Load the tarball into docker -```bash -docker load -i nginx-1.19.0.tar -``` + ```bash + docker load -i nginx-1.19.0.tar + ``` -Use this command to build locally: +2. Download the memcached tarball defined in `download.yaml`. The URL below is used as an example. Note +the version of memcached, in this case `5.6.33` -```bash -docker build . -t ubi_nginx-jitt \ - --build-arg BASE_REGISTRY="nexus-docker-secure.levelup-nexus.svc.cluster.local:18082" \ - --build-arg BASE_IMAGE="opensource/nginx/nginx" \ - --build-arg BASE_TAG="1.19.0" \ - --build-arg jitt_version="5.5.23" -``` + ```bash + wget --http-user=user --ask-password https://tar.sdelements.com/pulp/isos/Default_Organization/Library/custom/sde/SDElements_Dependency_RPMs/jitt-5.6.33.tar.gz + ``` + + +3. Use this command to build locally: + + ```bash + docker build . -t ubi_nginx-jitt:5.6.33 \ + --build-arg BASE_REGISTRY="localhost" \ + --build-arg BASE_IMAGE="opensource/nginx/nginx" \ + --build-arg BASE_TAG="1.19.0" \ + --build-arg jitt_version="5.6.33" + ```