project(init): Remove unused files

This commit is contained in:
周中平 2022-11-03 17:48:49 +08:00
parent 22c9f9e32c
commit f99ef325ae
No known key found for this signature in database
GPG Key ID: B1DF9DD42D8E00DC
6 changed files with 0 additions and 73 deletions

View File

@ -1,11 +0,0 @@
FROM busybox
LABEL maintainer="Jeroen Pardon"
WORKDIR /opt/html
COPY . /opt/html
EXPOSE 80
ENTRYPOINT [ "httpd", "-f", "-v", "-u", "1000" ]

View File

@ -1,10 +0,0 @@
FROM ubuntu:latest
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install nginx git cron nano
COPY install.sh /tmp/
EXPOSE 80
# execute install, start cron and nginx
CMD chmod +x /tmp/install.sh && /tmp/install.sh && cron && nginx

View File

@ -1,24 +0,0 @@
version: "3.5"
services:
sui:
container_name: sui
restart: always
build:
context: ./
environment:
- VIRTUAL_HOST=test.laserr.net
networks:
- nginx-proxy
- public
ports:
- 4000:80
volumes:
- ./:/opt/html
networks:
nginx-proxy:
external: true
public:
external:
name: public

View File

@ -1,2 +0,0 @@
cd /var/www/html
git pull

View File

@ -1,24 +0,0 @@
cd /var/www/html
git clone $GITURL sui
shopt -s dotglob
mv sui/* .
rm -rf sui
echo "pulled update"
# Copy hello-cron file to the cron.d directory
cp sui-cron /etc/cron.d/sui-cron
# Give execution rights on the cron job
chmod 0644 /etc/cron.d/sui-cron
# set pull script permissions
chmod +x gitpull.sh
# Apply cron job
crontab /etc/cron.d/sui-cron
# Create the log file to be able to run tail
touch /var/log/cron.log
# configure nginx
echo "daemon off;" >> /etc/nginx/nginx.conf

View File

@ -1,2 +0,0 @@
*/1 * * * * /var/www/html/gitpull.sh >> /var/log/cron.log 2>&1
# An empty line is required at the end of this file for a valid cron file.