http proxt settings env variables added
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
data/rpm/*
|
||||
data/deb/*
|
||||
proxy_settings.sh
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
FROM debian:10.5-slim
|
||||
|
||||
COPY config/deb/entrypoint.sh /opt/entrypoint.sh
|
||||
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 \
|
||||
&& \
|
||||
rm -rf /var/cache/apt/* \
|
||||
&& \
|
||||
mkdir -p /data/ \
|
||||
rm -rf /var/cache/apt/*
|
||||
COPY config/deb/entrypoint.sh /opt/entrypoint.sh
|
||||
RUN mkdir -p /data/ \
|
||||
&& \
|
||||
touch /var/log/cron.log \
|
||||
&& \
|
||||
chmod u+x /opt/entrypoint.sh
|
||||
|
||||
COPY config/deb/mirror.list /etc/apt/mirror.list
|
||||
COPY proxy_settings.sh /opt/proxy_settings.sh
|
||||
|
||||
VOLUME ["/data/"]
|
||||
ENTRYPOINT ["/opt/entrypoint.sh"]
|
||||
|
||||
@@ -4,6 +4,7 @@ RUN yum -y install createrepo yum-utils
|
||||
RUN mkdir /data/ /etc/yum.repos.d/mirror/
|
||||
|
||||
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/
|
||||
|
||||
VOLUME ["/data/"]
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
|
||||
@@ -5,6 +5,8 @@ do
|
||||
dnf config-manager --add-repo /etc/yum.repos.d/mirror/$repo_file
|
||||
done
|
||||
|
||||
source /opt/proxy_settings.sh
|
||||
|
||||
# for gpg_key in $(find /tmp/gpg_keys)
|
||||
# do
|
||||
# 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