~ajhalili2006's personal website, built with Zensical (successor of Material for Mkdocs) [old repo name got bugged while attempting to do manual knot migration via repo deletion] andreijiroh.dev
zensical mkdocs-material website

Fix some Docker-related issues

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>

Changed files
+19 -6
docker
-2
.gitlab-ci.yml
···
- pip3 install -r requirements.txt
- npm ci
- curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
-
- (curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh || wget -t 3 -qO- https://cli.doppler.com/install.sh) | sh
# Global builds and stuff
variables:
DEBUG: "1"
···
pages:
stage: build
script:
-
- bash ./build.sh
- doppler run -- ./bin/deploykit-pages.sh
artifacts:
paths:
···
- pip3 install -r requirements.txt
- npm ci
- curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
# Global builds and stuff
variables:
DEBUG: "1"
···
pages:
stage: build
script:
- doppler run -- ./bin/deploykit-pages.sh
artifacts:
paths:
+8 -4
docker/Dockerfile
···
git \
git-fast-import \
openssh \
-
&& pip3 install --no-cache-dir \
mkdocs-material \
mkdocs-redirects \
mkdocs-git-revision-date-localized-plugin \
···
# Expose MkDocs development server port
EXPOSE 8000
-
COPY entrypoint.sh /usr/local/bin/entrypoint
-
ENTRYPOINT [ "/usr/local/bin/entrypoint" ]
-
CMD [ "serve", "--dev-addr=0.0.0.0:8000" ]
···
git \
git-fast-import \
openssh \
+
gnupg \
+
&& (curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh || wget -t 3 -qO- https://cli.doppler.com/install.sh) \
+
| sh
+
RUN pip3 install --no-cache-dir \
mkdocs-material \
mkdocs-redirects \
mkdocs-git-revision-date-localized-plugin \
···
# Expose MkDocs development server port
EXPOSE 8000
+
WORKDIR /docs
+
+
#COPY entrypoint.sh /usr/local/bin/entrypoint
+
CMD [ "mkdocs", "serve", "--dev-addr=0.0.0.0:8000" ]
+11
docker/README.md
···
···
+
# CI image for GitLab CI deploys
+
+
This directory contains the necessary files to build a container image for the website deployments.
+
+
## How to build
+
+
Just run the script to build locally
+
+
```bash
+
./docker/build.sh
+
```