project(init): Remove unused files
This commit is contained in:
parent
22c9f9e32c
commit
f99ef325ae
11
Dockerfile
11
Dockerfile
@ -1,11 +0,0 @@
|
||||
FROM busybox
|
||||
|
||||
LABEL maintainer="Jeroen Pardon"
|
||||
|
||||
WORKDIR /opt/html
|
||||
|
||||
COPY . /opt/html
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
ENTRYPOINT [ "httpd", "-f", "-v", "-u", "1000" ]
|
@ -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
|
@ -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
|
@ -1,2 +0,0 @@
|
||||
cd /var/www/html
|
||||
git pull
|
24
install.sh
24
install.sh
@ -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
|
Reference in New Issue
Block a user