Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tru HUYNH
os-tools-centos7
Commits
61a828e0
Commit
61a828e0
authored
Sep 17, 2021
by
Tru HUYNH
Browse files
Initial commit
parents
Pipeline
#65397
canceled with stage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
61a828e0
image
:
registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:latest
services
:
-
registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:dind
stages
:
-
build
build
:
stage
:
build
script
:
-
docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" registry-gitlab.pasteur.fr
-
docker build --pull -f Dockerfile -t "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" .
-
docker push "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME"
-
docker tag "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA"
-
docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA"
-
docker tag "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" "$CI_REGISTRY_IMAGE:latest"
-
docker push "$CI_REGISTRY_IMAGE:latest"
-
export MY_TIME=`date +"%F-%H%M"`
-
docker tag "$CI_REGISTRY_IMAGE:latest" "$CI_REGISTRY_IMAGE:$MY_TIME"
-
docker push "$CI_REGISTRY_IMAGE:$MY_TIME"
Dockerfile
0 → 100644
View file @
61a828e0
# Copyright (c) 2019-2020 Intel Corporation.
# SPDX-License-Identifier: BSD-3-Clause
FROM
centos:7
# install OS tools
RUN
yum
install
-y
make gcc gcc-c++ kernel-devel
RUN
yum
install
-y
pkgconfig
RUN
yum
install
-y
which
RUN
yum
install
-y
bzip2
RUN
yum
install
-y
epel-release
RUN
yum
-y
upgrade
RUN
yum
install
-y
cmake3
# set environment variables
ENV
LANG=C.UTF-8
# oneAPI repository
ARG
repo=https://yum.repos.intel.com/oneapi
RUN
echo
-e
"
\
[oneAPI]
\n\
name=Intel(R) oneAPI repository
\n\
baseurl=
${
repo
}
\n\
enabled=1
\n\
gpgcheck=1
\n\
repo_gpgcheck=1
\n\
gpgkey=https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB"
\
>
/etc/yum.repos.d/oneAPI.repo
README.md
0 → 100644
View file @
61a828e0
adapted from https://raw.githubusercontent.com/intel/oneapi-containers/master/images/docker/os-tools-centos8/Dockerfile
for centos7
Write
Preview
Markdown
is supported
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