Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dev-el6
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Containers
dev-el6
Commits
cf6ebfe9
Commit
cf6ebfe9
authored
3 years ago
by
MADELA Patrick
Browse files
Options
Downloads
Patches
Plain Diff
Update README and Dockerfile
parent
1ce41b92
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#2970
passed
3 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+6
-6
6 additions, 6 deletions
Dockerfile
README.md
+36
-1
36 additions, 1 deletion
README.md
with
42 additions
and
7 deletions
Dockerfile
+
6
−
6
View file @
cf6ebfe9
FROM
centos:6
RUN
sed
-i
'/^mirrorlist/s/^/#/;/^#baseurl/{s/#//;s/mirror.centos.org\/centos\/$releasever/vault.centos.org\/6.10/}'
/etc/yum.repos.d/
*
B
*
;
\
yum
-y
update
&&
yum clean all
;
\
yum
-y
groupinstall
-y
"Development Tools"
;
\
yum
-y
install
cmake
;
\
yum
-y
install
epel-release
;
\
yum
-y
install
cmake3
RUN
sed
-i
'/^mirrorlist/s/^/#/;/^#baseurl/{s/#//;s/mirror.centos.org\/centos\/$releasever/vault.centos.org\/6.10/}'
/etc/yum.repos.d/
*
B
*
\
&&
yum
-y
update
&&
yum clean all
\
&&
yum
-y
groupinstall
-y
"Development Tools"
\
&&
yum
-y
install
cmake
\
&&
yum
-y
install
epel-release
\
&&
yum
-y
install
cmake3
CMD
["/bin/bash"]
This diff is collapsed.
Click to expand it.
README.md
+
36
−
1
View file @
cf6ebfe9
# dev-el6
To build a CentOS 6 development container for build and unit test
Docker container image based on official CentOS 6 image with development tools
-
gcc version 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC)
-
cmake version 2.8.12.2
-
cmake3 version 3.6.1
## Build image
```
docker build -t registry.gitlab.com/synchrotron-soleil/control-system/containers/dev-el6 .
```
If proxy issue
```
docker build --build-arg http_proxy=http://proxy.synchrotron-soleil.fr:8080 --build-arg https_proxy=http://proxy.synchrotron-soleil.fr:8080 -t registry.gitlab.com/synchrotron-soleil/control-system/containers/dev-el6 .
```
## Example of usage
```
$ git clone git@gitlab.synchrotron-soleil.fr:control-system/sandbox/cmake-catch1-hello.git
...
$ docker run --rm -it --user $UID -v $(pwd):/data registry.gitlab.com/synchrotron-soleil/control-system/containers/dev-el6
bash-4.2$ cd /data
bash-4.2$ cmake3 -H. -Bbuild
...
bash-4.2$ cmake3 --build build
...
bash-4.2$ build/unit_tests
...
bash-4.2$ build/unit_tests -r xml
...
bash-4.2$ build/SayHello
Hello World
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment