Skip to content
This repository was archived by the owner on Jan 25, 2019. It is now read-only.

Commit 9e6056d

Browse files
committed
Upgrade to ubuntu:18.04
1 parent 51cc578 commit 9e6056d

File tree

3 files changed

+22
-34
lines changed

3 files changed

+22
-34
lines changed

Dockerfile

+16-19
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
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+
129
CMD ["/sbin/init"]
10+
WORKDIR /host
11+
12+
RUN apt-get -y install rsyslog logrotate ssmtp logwatch cron
1313

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
1815

1916
### 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 && \
2421
certbot --version

README.md

+3-12
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,10 @@ Installation
2222

2323
+ Init a container directory for wsproxy: `ds init wsproxy @wsproxy`
2424

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`
3128

32-
+ Build image, create the container and configure it:
33-
```
34-
ds build
35-
ds create
36-
ds config
37-
```
3829

3930
Usage
4031
-----

settings.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ CONTAINER=wsproxy
66
PORT_SSH=2222 ## ssh port is needed for websites that are accessed through ssh-tunnels
77
PORTS="80:80 443:443 $PORT_SSH:22"
88

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
1212
GMAIL_ADDRESS=
1313
GMAIL_PASSWD=

0 commit comments

Comments
 (0)