This repository was archived by the owner on Jan 25, 2019. It is now read-only.
File tree 3 files changed +22
-34
lines changed
3 files changed +22
-34
lines changed Original file line number Diff line number Diff line change 1
- FROM ubuntu:16.04
2
- ENV container docker
3
- # Don't start any optional services except for the few we need.
4
- RUN find /etc/systemd/system \
5
- /lib/systemd/system \
6
- -path '*.wants/*' \
7
- -not -name '*journald*' \
8
- -not -name '*systemd-tmpfiles*' \
9
- -not -name '*systemd-user-sessions*' \
10
- -exec rm \{ } \;
11
- RUN systemctl set-default multi-user.target
1
+ FROM ubuntu:18.04
2
+
3
+ # ## install systemd
4
+ RUN apt update && \
5
+ apt -y upgrade && \
6
+ apt -y install systemd && \
7
+ systemctl set-default multi-user.target
8
+
12
9
CMD ["/sbin/init" ]
10
+ WORKDIR /host
11
+
12
+ RUN apt-get -y install rsyslog logrotate ssmtp logwatch cron
13
13
14
- RUN apt-get update; apt-get -y upgrade
15
- RUN apt-get -y install \
16
- rsyslog logrotate ssmtp logwatch \
17
- cron apache2 wget vim openssh-server net-tools
14
+ RUN apt-get -y install apache2 wget openssh-server net-tools
18
15
19
16
# ## install certbot (for getting ssl certs with letsencrypt)
20
- RUN wget https://dl.eff.org/certbot-auto; \
21
- chmod +x certbot-auto ; \
22
- mv certbot-auto /usr/local/bin/certbot ; \
23
- certbot --os-packages-only --non-interactive ; \
17
+ RUN wget https://dl.eff.org/certbot-auto && \
18
+ chmod +x certbot-auto && \
19
+ mv certbot-auto /usr/local/bin/certbot && \
20
+ certbot --os-packages-only --non-interactive && \
24
21
certbot --version
Original file line number Diff line number Diff line change @@ -22,19 +22,10 @@ Installation
22
22
23
23
+ Init a container directory for wsproxy: ` ds init wsproxy @wsproxy `
24
24
25
- + Initialize and fix the settings:
26
- ```
27
- cd /var/ds/wsproxy/
28
- vim settings.sh
29
- ds info
30
- ```
25
+ + Initialize and fix the settings: ` cd /var/ds/wsproxy/; vim settings.sh `
26
+
27
+ + Build image, create the container and configure it: ` ds make `
31
28
32
- + Build image, create the container and configure it:
33
- ```
34
- ds build
35
- ds create
36
- ds config
37
- ```
38
29
39
30
Usage
40
31
-----
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ CONTAINER=wsproxy
6
6
PORT_SSH=2222 # # ssh port is needed for websites that are accessed through ssh-tunnels
7
7
PORTS=" 80:80 443:443 $PORT_SSH :22"
8
8
9
- # ## Gmail account for server notifications (through ssmtp) .
10
- # ## Make sure to enable less-secure-apps :
11
- # ## https://support.google .com/accounts/answer/6010255?hl=en
9
+ # ## Gmail account for notifications. This will be used by ssmtp.
10
+ # ## You need to create an application specific password for your account :
11
+ # ## https://www.lifewire .com/get-a-password-to-access-gmail-by-pop-imap-2-1171882
12
12
GMAIL_ADDRESS=
13
13
GMAIL_PASSWD=
You can’t perform that action at this time.
0 commit comments