mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2024-11-25 18:03:44 +00:00
Fix some Docker-related issues
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
This commit is contained in:
parent
3b6b84728d
commit
c6bcc8722c
3 changed files with 19 additions and 6 deletions
|
@ -15,7 +15,6 @@ default:
|
||||||
- pip3 install -r requirements.txt
|
- pip3 install -r requirements.txt
|
||||||
- npm ci
|
- npm ci
|
||||||
- curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
|
- 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
|
# Global builds and stuff
|
||||||
variables:
|
variables:
|
||||||
DEBUG: "1"
|
DEBUG: "1"
|
||||||
|
@ -26,7 +25,6 @@ variables:
|
||||||
pages:
|
pages:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- bash ./build.sh
|
|
||||||
- doppler run -- ./bin/deploykit-pages.sh
|
- doppler run -- ./bin/deploykit-pages.sh
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
|
|
|
@ -36,7 +36,10 @@ RUN apk add --no-cache \
|
||||||
git \
|
git \
|
||||||
git-fast-import \
|
git-fast-import \
|
||||||
openssh \
|
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-material \
|
||||||
mkdocs-redirects \
|
mkdocs-redirects \
|
||||||
mkdocs-git-revision-date-localized-plugin \
|
mkdocs-git-revision-date-localized-plugin \
|
||||||
|
@ -51,6 +54,7 @@ RUN git config --global --add safe.directory /docs &&\
|
||||||
# Expose MkDocs development server port
|
# Expose MkDocs development server port
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
COPY entrypoint.sh /usr/local/bin/entrypoint
|
WORKDIR /docs
|
||||||
ENTRYPOINT [ "/usr/local/bin/entrypoint" ]
|
|
||||||
CMD [ "serve", "--dev-addr=0.0.0.0:8000" ]
|
#COPY entrypoint.sh /usr/local/bin/entrypoint
|
||||||
|
CMD [ "mkdocs", "serve", "--dev-addr=0.0.0.0:8000" ]
|
11
docker/README.md
Normal file
11
docker/README.md
Normal 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
|
||||||
|
```
|
Loading…
Reference in a new issue