-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
aozhuochao
committed
Apr 22, 2024
1 parent
e9c8782
commit 2bae3d7
Showing
8 changed files
with
124 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM adockero/pgyvpn:ubuntu-socat | ||
|
||
|
||
RUN apt update \ | ||
&& apt install -y openssh-server \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | ||
&& apt-get clean | ||
|
||
ENV SSHD_PORT 22 | ||
ENV SSHD_PASSWORD='' | ||
COPY ./common/open-sshd-passwd.sh /open-sshd-passwd.sh | ||
|
||
|
||
COPY ./pgyvpn/sshd/docker-entrypoint.sh /docker-entrypoint-sshd.sh | ||
ENTRYPOINT [ "/docker-entrypoint-sshd.sh" ] | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
FROM adockero/pgyvpn:ubuntu | ||
|
||
|
||
RUN apt update \ | ||
&& apt install -y socat \ | ||
&& mv /docker-entrypoint.sh /usr/share/pgyvpn/script/pgystart \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | ||
&& apt-get clean | ||
|
||
|
||
# COPY --chmod 0755 docker-entrypoint.sh /docker-entrypoint.sh | ||
ENV PROXY_IP "" | ||
ENV PROXY_PORT "" | ||
COPY ./pgyvpn/ubuntu/docker-entrypoint.socat.sh /docker-entrypoint.sh | ||
|
||
|
||
EXPOSE 8888 | ||
|
||
# 一次脚本 | ||
COPY ./common/one-exec.sh /one-exec.sh | ||
ENV ONE_EXEC "" | ||
|
||
ENTRYPOINT [ "/docker-entrypoint.sh" ] | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
mkdir -p /var/log/oray/ | ||
touch /var/log/oray/pgyvpn/pgyvistor.log | ||
|
||
(sleep 2 && tail -f /var/log/oray/pgyvpn/pgyvistor.log) & | ||
|
||
/one-exec.sh | ||
|
||
(sleep 1 && /usr/share/pgyvpn/script/pgystart) & | ||
|
||
exec socat -v TCP-LISTEN:8888,fork,reuseaddr TCP:$PROXY_IP:$PROXY_PORT "$@" | ||
|
||
|