-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code to create & locally save a centos6 container, while it still exists
- Loading branch information
Showing
3 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
science-containers/Dockerfiles/casa/centos6/CentOS-Base.repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[base] | ||
name=CentOS-$releasever - Base | ||
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra | ||
# baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ | ||
baseurl=https://vault.centos.org/6.10/os/$basearch/ | ||
gpgcheck=1 | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 | ||
|
||
# released updates | ||
[updates] | ||
name=CentOS-$releasever - Updates | ||
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra | ||
# baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ | ||
baseurl=https://vault.centos.org/6.10/updates/$basearch/ | ||
gpgcheck=1 | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 | ||
|
||
# additional packages that may be useful | ||
[extras] | ||
name=CentOS-$releasever - Extras | ||
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra | ||
# baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ | ||
baseurl=https://vault.centos.org/6.10/extras/$basearch/ | ||
gpgcheck=1 | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM centos:6 | ||
#this Dockerfile runs through the build of a centos6 container and saves it | ||
# to images.canfar.net, to use as a base for the subsequent builds of older | ||
# casa versions, because the web-based centos6 distributions are becoming | ||
# unstable and unmaintained | ||
|
||
# Override old repo info with current urls | ||
RUN rm /etc/yum.repos.d/CentOS-Base.repo | ||
ADD CentOS-Base.repo /etc/yum.repos.d/ | ||
|
||
RUN yum clean all -y | ||
RUN yum makecache -y | ||
RUN yum update -y | ||
RUN yum install -y freetype libSM libXi libXrender libXrandr \ | ||
libXfixes libXcursor libXinerama fontconfig \ | ||
libxslt xauth xorg-x11-server-Xvfb dbus-x11 \ | ||
tkinter ImageMagick-c++ xterm perl autoconf python-sphinx graphviz | ||
|
||
RUN yum install -y sssd-client acl | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
VERSIONS = \ | ||
6 | ||
|
||
|
||
DOCKER_REPO_BASE=images.canfar.net/skaha/centos | ||
|
||
.PHONY: build clean run | ||
|
||
all: build | ||
|
||
build: | ||
@- $(foreach V,$(VERSIONS), \ | ||
docker build -t ${DOCKER_REPO_BASE}:$(V) .; \ | ||
) | ||
|
||
clean: | ||
@- $(foreach V,$(VERSIONS), \ | ||
docker rmi ${DOCKER_REPO_BASE}:$(V) ; \ | ||
) | ||
|
||
|
||
upload: build | ||
@- $(foreach V,$(VERSIONS), \ | ||
docker push ${DOCKER_REPO_BASE}:$(V) ; \ | ||
) | ||
clean_all: clean | ||
upload_all: upload |