Compare commits

...

5 commits

Author SHA1 Message Date
Aode (Lion) 019b402c44 Update synapse build 2021-10-21 23:18:52 -05:00
Aode (Lion) 4a664b6e30 Update riot build 2021-10-21 23:18:39 -05:00
Aode (Lion) 8a284bbe63 Update pinafore build 2021-10-21 23:18:28 -05:00
Aode (Lion) d96cd46987 Update nextcloud build 2021-10-21 23:18:05 -05:00
Aode (Lion) 30bf6d514e Update mastodon build 2021-10-21 23:17:46 -05:00
11 changed files with 54 additions and 29 deletions

View file

@ -42,7 +42,7 @@ RUN mkdir -p /opt/mastodon/.config/yarn/global && \
gem install bundler:1.17.2 && \
bundle config set deployment 'true' && \
bundle install -j$(nproc) --without development test --with production && \
yarn install --pure-lockfile
yarn install --pure-lockfile --network-timeout=30000
# Compile assets
RUN OTP_SECRET=precompile_placeholder SECRET_KEY_BASE=precompile_placeholder \

View file

@ -0,0 +1,3 @@
#!/usr/bin/env sh
bundle exec bin/tootctl accounts refresh --all

View file

@ -1,6 +1,6 @@
FROM linuxserver/nextcloud:BASE_TAG
ADD https://github.com/nextcloud/notify_push/releases/download/v0.2.0/notify_push-aarch64-unknown-linux-musl /usr/local/bin/notify_push
ADD https://github.com/nextcloud/notify_push/releases/download/v0.2.4/notify_push-aarch64-unknown-linux-musl /usr/local/bin/notify_push
RUN chmod +x /usr/local/bin/notify_push
COPY root/ /

View file

@ -0,0 +1,6 @@
FROM linuxserver/nextcloud:arm64v8-php8-22.1.1-ls153
ADD https://github.com/nextcloud/notify_push/releases/download/v0.2.4/notify_push-aarch64-unknown-linux-musl /usr/local/bin/notify_push
RUN chmod +x /usr/local/bin/notify_push
COPY root/ /

View file

@ -29,7 +29,7 @@ function build_image() {
sed "s/BASE_TAG/${ARCH}-${NEXTCLOUD_RELEASE}-${VERSION}/g" "Dockerfile.${ARCH}" \
> "Dockerfile.${ARCH}.${NEXTCLOUD_RELEASE}.${VERSION}"
docker build \
sudo docker build \
--pull \
--no-cache \
-f "Dockerfile.${ARCH}.${NEXTCLOUD_RELEASE}.${VERSION}" \
@ -38,9 +38,9 @@ function build_image() {
-t "${IMAGE}:latest" \
.
docker push "${IMAGE}:${NEXTCLOUD_RELEASE}-${VERSION}-${ARCH}"
docker push "${IMAGE}:latest-${ARCH}"
docker push "${IMAGE}:latest"
sudo docker push "${IMAGE}:${NEXTCLOUD_RELEASE}-${VERSION}-${ARCH}"
sudo docker push "${IMAGE}:latest-${ARCH}"
sudo docker push "${IMAGE}:latest"
rm "Dockerfile.${ARCH}.${NEXTCLOUD_RELEASE}.${VERSION}"
}
@ -48,6 +48,11 @@ function build_image() {
require "$VERSION" "version"
require "$NEXTCLOUD_RELEASE" "nextcloud release"
if ! sudo docker run --rm -it arm64v8/ubuntu:19.10 /bin/bash -c 'echo "docker is configured correctly"'; then
echo "docker is not configured to run on qemu-emulated architectures, fixing will require sudo"
sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
fi
set -xe
build_image asonix/nextcloud arm64v8

View file

@ -1,5 +1,5 @@
# Using Alpine to keep the images smaller
FROM arm64v8/alpine:latest
FROM arm64v8/node:alpine
ARG TAG
ARG VERSION
@ -13,19 +13,11 @@ RUN tar zxf v$TAG.tar.gz \
&& mv pinafore-$TAG/* . \
&& rm -rf pinafore-$TAG
# Install updates and NodeJS+Dependencies
RUN apk add --update --no-cache --virtual build-dependencies git python3 build-base clang \
# Install updates and NodeJS+Dependencies
&& apk add --update --no-cache nodejs npm \
# Install yarn
&& npm i yarn -g \
# Install Pinafore
&& yarn --production --pure-lockfile \
&& yarn build \
RUN yarn --production --pure-lockfile --network-timeout=30000 \
&& yarn build --network-timeout=30000 \
&& yarn cache clean \
&& rm -rf ./src \
# Cleanup
&& apk del build-dependencies
&& rm -rf ./src ./docs ./tests ./bin
# Expose port 4002
EXPOSE 4002

View file

@ -1,4 +1,4 @@
FROM vectorim/riot-web:VERSION as builder
FROM vectorim/element-web:VERSION as builder
FROM arm64v8/nginx:mainline-alpine

19
riot/Dockerfile.v1.8.1-r0 Normal file
View file

@ -0,0 +1,19 @@
FROM vectorim/element-web:v1.8.1-r0 as builder
FROM arm64v8/nginx:mainline-alpine
RUN apk add tini
RUN sed -i '3i\ \ \ \ application/wasm wasm\;' /etc/nginx/mime.types
COPY --from=builder /app /app
COPY init.sh /usr/local/bin/init.sh
RUN set -xe; \
rm -rf /usr/share/nginx/html; \
ln -s /app /usr/share/nginx/html; \
mkdir /etc/riot-web
VOLUME /etc/riot-web
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["init.sh", "nginx", "-g", "daemon off;"]

View file

@ -22,7 +22,7 @@ function print_help() {
require "$TAG" tag
if ! docker run --rm -it arm64v8/ubuntu:19.10 /bin/bash -c 'echo "docker is configured correctly"'; then
if ! sudo docker run --rm -it arm64v8/ubuntu:19.10 /bin/bash -c 'echo "docker is configured correctly"'; then
echo "docker is not configured to run on qemu-emulated architectures, fixing will require sudo"
sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
fi
@ -31,7 +31,7 @@ set -xe
sed "s/VERSION/$TAG/g" Dockerfile > "Dockerfile.$TAG"
docker build \
sudo docker build \
--pull \
--no-cache \
-f "Dockerfile.$TAG" \
@ -40,8 +40,8 @@ docker build \
-t asonix/riot-web:latest \
.
docker push "asonix/riot-web:$TAG-arm64v8"
docker push asonix/riot-web:latest-arm64v8
docker push asonix/riot-web:latest
sudo docker push "asonix/riot-web:$TAG-arm64v8"
sudo docker push asonix/riot-web:latest-arm64v8
sudo docker push asonix/riot-web:latest
rm "Dockerfile.$TAG"

View file

@ -22,14 +22,14 @@ function print_help() {
require "$TAG" tag
if ! docker run --rm -it arm64v8/ubuntu:19.10 /bin/bash -c 'echo "docker is configured correctly"'; then
if ! sudo docker run --rm -it arm64v8/ubuntu:19.10 /bin/bash -c 'echo "docker is configured correctly"'; then
echo "docker is not configured to run on qemu-emulated architectures, fixing will require sudo"
sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
fi
set -xe
docker build \
sudo docker build \
--pull \
--no-cache \
-f Dockerfile \
@ -38,6 +38,6 @@ docker build \
-t asonix/synapse:latest \
.
docker push "asonix/synapse:$TAG-arm64v8"
docker push asonix/synapse:latest-arm64v8
docker push asonix/synapse:latest
sudo docker push "asonix/synapse:$TAG-arm64v8"
sudo docker push asonix/synapse:latest-arm64v8
sudo docker push asonix/synapse:latest