Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
l y
Jumpserver
Commits
03ff5354
Commit
03ff5354
authored
4 years ago
by
ibuler
Committed by
Jiangjie.Bai
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix: 修复centos的mirror问题
parent
fedb650c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+3
-1
Dockerfile
with
3 additions
and
1 deletion
+3
-1
Dockerfile
+
3
-
1
View file @
03ff5354
...
...
@@ -20,7 +20,9 @@ WORKDIR /opt/jumpserver
COPY
./requirements ./requirements
RUN
useradd jumpserver
RUN
wget
-O
/etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
RUN
wget
-O
/etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
\
&&
sed
-i
's@/centos/@/centos-vault/@g'
/etc/yum.repos.d/CentOS-Base.repo
\
&&
sed
-i
's@$releasever@6.10@g'
/etc/yum.repos.d/CentOS-Base.repo
RUN
yum
-y
install
epel-release
&&
\
echo
-e
"[mysql]
\n
name=mysql
\n
baseurl=
${
MYSQL_MIRROR
}
\n
gpgcheck=0
\n
enabled=1"
>
/etc/yum.repos.d/mysql.repo
RUN
yum
-y
install
$(
cat
requirements/rpm_requirements.txt
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help