Compare commits
No commits in common. "3958f7afec094e834f87cb44a23bbf02412bf803" and "c8534e86e40a9517ea16589433bb9567b15e36b8" have entirely different histories.
3958f7afec
...
c8534e86e4
@ -1,12 +0,0 @@
|
|||||||
name: Build Multiarch Container Image
|
|
||||||
on: [push]
|
|
||||||
jobs:
|
|
||||||
call-reusable-workflow:
|
|
||||||
uses: container/multiarch-build-workflow/.gitea/workflows/build.yaml@main
|
|
||||||
with:
|
|
||||||
repository: ${{ gitea.repository }}
|
|
||||||
ref_name: ${{ gitea.ref_name }}
|
|
||||||
sha: ${{ gitea.sha }}
|
|
||||||
registry_url: ${{ secrets.REGISTRY_URL }}
|
|
||||||
registry_user: ${{ secrets.REGISTRY_USER }}
|
|
||||||
registry_pw: ${{ secrets.REGISTRY_PW }}
|
|
18
.gitlab-ci.yml
Normal file
18
.gitlab-ci.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
variables:
|
||||||
|
CONTAINER_NAME: thallian/wikijs
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
image:
|
||||||
|
name: gcr.io/kaniko-project/executor:debug
|
||||||
|
entrypoint: [""]
|
||||||
|
script:
|
||||||
|
- mkdir -p /kaniko/.docker
|
||||||
|
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(printf "%s:%s" "$CI_REGISTRY_USER" "$CI_REGISTRY_PASSWORD" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
|
||||||
|
- >-
|
||||||
|
/kaniko/executor
|
||||||
|
--context "$CI_PROJECT_DIR"
|
||||||
|
--dockerfile "$CI_PROJECT_DIR/Dockerfile"
|
||||||
|
--destination "$CONTAINER_NAME:$CI_COMMIT_SHA"
|
||||||
|
--destination "$CONTAINER_NAME:$CI_COMMIT_REF_NAME"
|
||||||
|
--destination "$CONTAINER_NAME:latest"
|
@ -1,38 +1,33 @@
|
|||||||
FROM docker.io/alpine:3.19 as builder
|
FROM alpine:3.15 as builder
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
git \
|
git \
|
||||||
npm \
|
npm \
|
||||||
bash \
|
bash \
|
||||||
python3 \
|
python3 \
|
||||||
make \
|
make
|
||||||
sed \
|
|
||||||
g++ \
|
|
||||||
musl-dev
|
|
||||||
|
|
||||||
#ENV NODE_ENV=production
|
#ENV NODE_ENV=production
|
||||||
|
|
||||||
# to get around errors from differing stack sizes in musl
|
# to get around errors from differing stack sizes in musl
|
||||||
# https://wiki.musl-libc.org/functional-differences-from-glibc.html#Thread_stack_size
|
# https://wiki.musl-libc.org/functional-differences-from-glibc.html#Thread_stack_size
|
||||||
#RUN npm config set unsafe-perm true
|
RUN npm config set unsafe-perm true
|
||||||
ENV NODE_OPTIONS=--openssl-legacy-provider
|
|
||||||
RUN npm install -g \
|
RUN npm install -g \
|
||||||
webpack \
|
webpack \
|
||||||
webpack-cli \
|
webpack-cli \
|
||||||
node-gyp
|
node-gyp
|
||||||
|
|
||||||
ENV WIKIJS_VERSION=v2.5.301
|
ENV WIKIJS_VERSION=v2.5.275
|
||||||
|
|
||||||
RUN git clone https://github.com/Requarks/wiki.git -b $WIKIJS_VERSION /build
|
RUN git clone https://github.com/Requarks/wiki.git -b $WIKIJS_VERSION /build
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
RUN npm install --legacy-peer-deps
|
RUN npm install --legacy-peer-deps
|
||||||
# don't know why this is needed here too, but what the hell
|
# don't know why this is needed here too, but what the hell
|
||||||
RUN npm install --legacy-peer-deps --save-dev webpack webpack-cli
|
RUN npm install --save-dev webpack webpack-cli
|
||||||
RUN npx webpack --profile --config dev/webpack/webpack.prod.js
|
RUN npx webpack --profile --config dev/webpack/webpack.prod.js
|
||||||
RUN sed -i '0,/.*"dev".*/s//"dev": false,/' package.json
|
|
||||||
|
|
||||||
FROM docker.io/thallian/confd-env:3.19-3.1.6.2
|
FROM thallian/confd-env:latest
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
@ -47,9 +42,9 @@ COPY --from=builder --chown=wikijs:wikijs /build/config.sample.yml /home/wikijs/
|
|||||||
COPY --from=builder --chown=wikijs:wikijs /build/package.json /home/wikijs/package.json
|
COPY --from=builder --chown=wikijs:wikijs /build/package.json /home/wikijs/package.json
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
nodejs \
|
nodejs \
|
||||||
git \
|
git \
|
||||||
openssh-client
|
openssh-client
|
||||||
|
|
||||||
ADD /rootfs /
|
ADD /rootfs /
|
||||||
|
|
Loading…
Reference in New Issue
Block a user