Fix some Docker-related issues

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
This commit is contained in:
Andrei Jiroh Halili 2023-07-15 17:51:39 +00:00
parent 3b6b84728d
commit c6bcc8722c
3 changed files with 19 additions and 6 deletions

View file

@ -15,7 +15,6 @@ default:
- 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"
@ -26,7 +25,6 @@ variables:
pages:
stage: build
script:
- bash ./build.sh
- doppler run -- ./bin/deploykit-pages.sh
artifacts:
paths:

View file

@ -36,7 +36,10 @@ RUN apk add --no-cache \
git \
git-fast-import \
openssh \
&& pip3 install --no-cache-dir \
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 \
@ -51,6 +54,7 @@ RUN git config --global --add safe.directory /docs &&\
# 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" ]
WORKDIR /docs
#COPY entrypoint.sh /usr/local/bin/entrypoint
CMD [ "mkdocs", "serve", "--dev-addr=0.0.0.0:8000" ]

11
docker/README.md Normal file
View file

@ -0,0 +1,11 @@
# 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
```