From f99ef325ae647e2ebb38ebf5979a9edb2b0bbdb2 Mon Sep 17 00:00:00 2001 From: 7Wate Date: Thu, 3 Nov 2022 17:48:49 +0800 Subject: [PATCH] project(init): Remove unused files --- Dockerfile | 11 ----------- DockerfilePullFromGit | 10 ---------- docker-compose.yml | 24 ------------------------ gitpull.sh | 2 -- install.sh | 24 ------------------------ sui-cron | 2 -- 6 files changed, 73 deletions(-) delete mode 100644 Dockerfile delete mode 100644 DockerfilePullFromGit delete mode 100644 docker-compose.yml delete mode 100644 gitpull.sh delete mode 100644 install.sh delete mode 100644 sui-cron diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 0193116..0000000 --- a/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM busybox - -LABEL maintainer="Jeroen Pardon" - -WORKDIR /opt/html - -COPY . /opt/html - -EXPOSE 80 - -ENTRYPOINT [ "httpd", "-f", "-v", "-u", "1000" ] diff --git a/DockerfilePullFromGit b/DockerfilePullFromGit deleted file mode 100644 index 898b803..0000000 --- a/DockerfilePullFromGit +++ /dev/null @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 761c273..0000000 --- a/docker-compose.yml +++ /dev/null @@ -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 diff --git a/gitpull.sh b/gitpull.sh deleted file mode 100644 index e72aacc..0000000 --- a/gitpull.sh +++ /dev/null @@ -1,2 +0,0 @@ -cd /var/www/html -git pull diff --git a/install.sh b/install.sh deleted file mode 100644 index 1c91950..0000000 --- a/install.sh +++ /dev/null @@ -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 diff --git a/sui-cron b/sui-cron deleted file mode 100644 index 65bc07d..0000000 --- a/sui-cron +++ /dev/null @@ -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.