mirror of
https://github.com/Kiritow/image-station.git
synced 2024-03-22 13:30:54 +08:00
Add image projects
This commit is contained in:
parent
340cd680a9
commit
b78c20d883
15
frpc/Dockerfile
Normal file
15
frpc/Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Stage 0
|
||||
FROM ubuntu-cn:latest
|
||||
RUN apt update && apt install -y curl && rm -rf /var/lib/apt/lists/*
|
||||
RUN cd /root \
|
||||
&& curl -vL https://github.com/fatedier/frp/releases/download/v0.35.1/frp_0.35.1_linux_amd64.tar.gz -o frp.tgz \
|
||||
&& mkdir temp \
|
||||
&& tar -xzvf frp.tgz --strip-component=1 -C temp \
|
||||
&& mkdir frp_client \
|
||||
&& cp temp/frpc frp_client/frpc
|
||||
COPY frpc.ini frp_client/
|
||||
|
||||
# Stage 1
|
||||
FROM ubuntu-cn:latest
|
||||
COPY --from=0 frp_client /opt/frp
|
||||
ENTRYPOINT sed -i "s/__server_addr__/$0/g; s/__server_port__/$1/g; s/__service_name__/$2/g; s/__type__/$3/g; s/__local_port__/$4/g; s/__remote_port__/$5/g" /opt/frp/frpc.ini && /opt/frp/frpc -c /opt/frp/frpc.ini
|
7
frpc/Readme.md
Normal file
7
frpc/Readme.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# frp client
|
||||
|
||||
Start container with pod (using podman):
|
||||
|
||||
```shell
|
||||
podman run --pod=... -itd frpc 192.168.0.1 7000 test-service tcp 8080 28080
|
||||
```
|
9
frpc/frpc.ini
Normal file
9
frpc/frpc.ini
Normal file
|
@ -0,0 +1,9 @@
|
|||
[common]
|
||||
server_addr = __server_addr__
|
||||
server_port = __server_port__
|
||||
|
||||
[__service_name__]
|
||||
type = __type__
|
||||
local_ip = 127.0.0.1
|
||||
local_port = __local_port__
|
||||
remote_port = __remote_port__
|
11
ubuntu-cn-systemd/Dockerfile
Normal file
11
ubuntu-cn-systemd/Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
|||
FROM ubuntu-cn:latest
|
||||
RUN apt update \
|
||||
&& echo 'tzdata tzdata/Areas select Asia' >> /root/preseed.cfg \
|
||||
&& echo 'tzdata tzdata/Zones/Asia select Shanghai' >> /root/preseed.cfg \
|
||||
&& debconf-set-selections /root/preseed.cfg \
|
||||
&& rm -f /etc/timezone /etc/localtime \
|
||||
&& DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true apt install -y systemd \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& rm -rf /tmp/* /var/tmp/* \
|
||||
&& rm /root/preseed.cfg
|
||||
ENTRYPOINT ["/bin/systemd"]
|
2
ubuntu-cn/Dockerfile
Normal file
2
ubuntu-cn/Dockerfile
Normal file
|
@ -0,0 +1,2 @@
|
|||
FROM ubuntu:20.04
|
||||
RUN sed 's/archive.ubuntu.com/mirrors.aliyun.com/g; s/security.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list > /etc/apt/sources.list.new && mv /etc/apt/sources.list.new /etc/apt/sources.list && rm -f /etc/apt/apt.conf.d/docker-gzip-indexes
|
Loading…
Reference in New Issue
Block a user