http proxt settings env variables added
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
data/rpm/*
|
data/rpm/*
|
||||||
data/deb/*
|
data/deb/*
|
||||||
|
proxy_settings.sh
|
||||||
|
|||||||
@@ -1,21 +1,21 @@
|
|||||||
FROM debian:10.5-slim
|
FROM debian:10.5-slim
|
||||||
|
|
||||||
COPY config/deb/entrypoint.sh /opt/entrypoint.sh
|
|
||||||
RUN apt-get update -q \
|
RUN apt-get update -q \
|
||||||
&& \
|
&& \
|
||||||
apt install -y -qq apt-mirror apt-transport-https software-properties-common wget \
|
apt install -y -qq apt-mirror apt-transport-https software-properties-common wget gnupg\
|
||||||
&& \
|
&& \
|
||||||
apt-get autoremove \
|
apt-get autoremove \
|
||||||
&& \
|
&& \
|
||||||
rm -rf /var/cache/apt/* \
|
rm -rf /var/cache/apt/*
|
||||||
&& \
|
COPY config/deb/entrypoint.sh /opt/entrypoint.sh
|
||||||
mkdir -p /data/ \
|
RUN mkdir -p /data/ \
|
||||||
&& \
|
&& \
|
||||||
touch /var/log/cron.log \
|
touch /var/log/cron.log \
|
||||||
&& \
|
&& \
|
||||||
chmod u+x /opt/entrypoint.sh
|
chmod u+x /opt/entrypoint.sh
|
||||||
|
|
||||||
COPY config/deb/mirror.list /etc/apt/mirror.list
|
COPY config/deb/mirror.list /etc/apt/mirror.list
|
||||||
|
COPY proxy_settings.sh /opt/proxy_settings.sh
|
||||||
|
|
||||||
VOLUME ["/data/"]
|
VOLUME ["/data/"]
|
||||||
ENTRYPOINT ["/opt/entrypoint.sh"]
|
ENTRYPOINT ["/opt/entrypoint.sh"]
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ RUN yum -y install createrepo yum-utils
|
|||||||
RUN mkdir /data/ /etc/yum.repos.d/mirror/
|
RUN mkdir /data/ /etc/yum.repos.d/mirror/
|
||||||
|
|
||||||
COPY config/rpm/entrypoint.sh /opt/entrypoint.sh
|
COPY config/rpm/entrypoint.sh /opt/entrypoint.sh
|
||||||
|
COPY proxy_settings.sh /opt/proxy_settings.sh
|
||||||
COPY config/rpm/repo_files/* /etc/yum.repos.d/mirror/
|
COPY config/rpm/repo_files/* /etc/yum.repos.d/mirror/
|
||||||
|
|
||||||
VOLUME ["/data/"]
|
VOLUME ["/data/"]
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key
|
wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key
|
||||||
|
|
||||||
|
source /opt/proxy_settings.sh
|
||||||
|
|
||||||
|
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg
|
||||||
|
|
||||||
apt-mirror
|
apt-mirror
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ do
|
|||||||
dnf config-manager --add-repo /etc/yum.repos.d/mirror/$repo_file
|
dnf config-manager --add-repo /etc/yum.repos.d/mirror/$repo_file
|
||||||
done
|
done
|
||||||
|
|
||||||
|
source /opt/proxy_settings.sh
|
||||||
|
|
||||||
# for gpg_key in $(find /tmp/gpg_keys)
|
# for gpg_key in $(find /tmp/gpg_keys)
|
||||||
# do
|
# do
|
||||||
# rpm --import /tmp/gpg_keys/$gpg_key
|
# rpm --import /tmp/gpg_keys/$gpg_key
|
||||||
|
|||||||
2
proxy_settings.sh.example
Normal file
2
proxy_settings.sh.example
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
export https_proxy=https://
|
||||||
|
export http_proxy=http://
|
||||||
Reference in New Issue
Block a user