Skip to content

Commit 24bb24f

Browse files
committed
docker build init
1 parent ab0e8d1 commit 24bb24f

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.gz

CentOS-Base.repo

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[base]
2+
name=CentOS-$releasever - Base
3+
baseurl=http://vault.centos.org/5.11/os/$basearch/
4+
gpgcheck=1
5+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

build.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
3+
if [[ ! -r go1.4.3 ]]; then
4+
wget -c https://dl.google.com/go/go1.4.3.linux-amd64.tar.gz
5+
tar zxvf go1.4.3.linux-amd64.tar.gz
6+
mv go go1.4.3
7+
fi
8+
9+
if [[ ! -r go1.12.4 ]]; then
10+
wget -c https://dl.google.com/go/go1.12.4.src.tar.gz
11+
tar zxvf go1.12.4.src.tar.gz
12+
mv go go1.12.4
13+
fi
14+
15+
docker build .

0 commit comments

Comments
 (0)