Browse Source

remove docker-specific keywords

www
Fernando Alegre 7 months ago
parent
commit
e3fe2309b8
  1. 6
      debian/Containerfile
  2. 2
      nextcloud/scripts/build.sh
  3. 0
      nextcloud/scripts/nextcloud
  4. 18
      nextcloud/scripts/prep.sh

6
debian/Containerfile

@ -5,15 +5,15 @@ ENTRYPOINT [ "/sbin/init" ]
# set default working directory as root for child images
WORKDIR /root/
ONBUILD WORKDIR /root/
### ONBUILD WORKDIR /root/
# set bash as the default shell for executing commands
# inside Containerfiles for child images
ONBUILD SHELL ["/bin/bash", "-c"]
### ONBUILD SHELL ["/bin/bash", "-c"]
# tell bash to read /etc/environment when being run
# non-interactively for child images
ONBUILD ENV BASH_ENV=/etc/environment
### ONBUILD ENV BASH_ENV=/etc/environment
# We can't use timedatectl because systemd isn't available
# during the build process, so we have to set the timezone manually

2
nextcloud/scripts/build.sh

@ -0,0 +1,2 @@
exec pdm-build -v data -v files "$@"

0
nextcloud/startup/nextcloud → nextcloud/scripts/nextcloud

18
nextcloud/scripts/prep.sh

@ -0,0 +1,18 @@
#!/bin/sh
USE_HOST=www.alemor.org
mkdir -p $HOME/vol/nextcloud/data $HOME/vol/nextcloud/files
cp data/* $HOME/vol/nextcloud/data/
sed -e "s/example.domain.com/$USE_HOST/" data/host.config.php > $HOME/vol/nextcloud/data/host.config.php
mkdir -p assets/nextcloud
cd assets/nextcloud
if [ -e latest.zip ]; then
echo Available Nextcloud files:
ls -lF
else
wget --progress=dot:giga https://download.nextcloud.com/server/releases/latest.zip
fi
Loading…
Cancel
Save