Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
core
picodata
Commits
265d3f82
Commit
265d3f82
authored
2 years ago
by
Alexey Protsenko
Committed by
Yaroslav Dynnikov
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ci: new build base Dockerfile
Move build base on Ubuntu 22.04
parent
29ea5b88
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!313
ci: new build-base Dockerfile and workflow
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker-build-base/Dockerfile
+19
-111
19 additions, 111 deletions
docker-build-base/Dockerfile
with
19 additions
and
111 deletions
docker-build-base/Dockerfile
+
19
−
111
View file @
265d3f82
FROM
centos:7
RUN
curl
-L
https://tarantool.io/release/2.8/installer.sh | bash
FROM
ubuntu:22.04
RUN
set
-e
;
\
yum
-y
install
centos-release-scl
;
\
yum
-y
groupinstall
"Development Tools"
;
\
yum-config-manager
--enable
rhel-server-rhscl-7-rpms
;
\
yum
-y
install
\
devtoolset-7-gcc
\
devtoolset-7-gcc-c++
\
git
\
tarantool
\
unzip
\
cmake3
\
wget
\
zlib-devel
\
expat-devel
\
openssl11-devel
\
openssl11-libs
\
libffi-devel
\
sqlite-devel
\
;
\
yum clean all
;
\
ln
-s
/usr/bin/cmake3 /usr/bin/cmake
;
ENV
PATH=/opt/rh/devtoolset-7/root/usr/bin:${PATH}
apt update
-y
&&
\
apt
install
-y
\
build-essential
\
git unzip wget curl
\
cmake make
\
zlib1g-dev
\
libreadline-dev
\
libncurses5-dev
\
libssl-dev
\
libunwind-dev
\
libicu-dev
\
python3
\
python3-yaml
\
python3-six
\
python3-gevent
\
python3-pip
ENV
PATH=/root/.cargo/bin:${PATH}
RUN
set
-e
;
\
curl
--proto
'=https'
--tlsv1
.2
-sSf
https://sh.rustup.rs |
\
sh
-s
--
-y
--profile
default
--default-toolchain
1.64.0
;
curl
--proto
'=https'
--tlsv1
.2
-sSf
https://sh.rustup.rs |
\
sh
-s
--
-y
--profile
default
--default-toolchain
1.64.0
ENV
PATH=/root/.rocks/bin:${PATH}
RUN
set
-e
;
\
cd
/root
;
\
tarantoolctl rocks
install
luacheck 0.26.0
;
\
tarantoolctl rocks
install
luatest 0.5.7
;
################ Python ###############################################################
ENV
GPG_KEY A035C8C19219BA821ECEA86B64E628F8D684696D
ENV
PYTHON_VERSION 3.10.6
RUN
set
-e
;
\
wget
-q
-O
python.tar.xz
"https://www.python.org/ftp/python/
${
PYTHON_VERSION
%%[a-z]*
}
/Python-
$PYTHON_VERSION
.tar.xz"
;
\
wget
-q
-O
python.tar.xz.asc
"https://www.python.org/ftp/python/
${
PYTHON_VERSION
%%[a-z]*
}
/Python-
$PYTHON_VERSION
.tar.xz.asc"
;
\
GNUPGHOME
=
"
$(
mktemp
-d
)
"
;
export
GNUPGHOME
;
\
gpg
--batch
--keyserver
hkps://keys.openpgp.org
--recv-keys
"
$GPG_KEY
"
;
\
gpg
--batch
--verify
python.tar.xz.asc python.tar.xz
;
\
command
-v
gpgconf
>
/dev/null
&&
gpgconf
--kill
all
||
:
;
\
rm
-rf
"
$GNUPGHOME
"
python.tar.xz.asc
;
\
mkdir
-p
/usr/src/python
;
\
tar
--extract
--directory
/usr/src/python
--strip-components
=
1
--file
python.tar.xz
;
\
rm
python.tar.xz
;
\
\
cd
/usr/src/python
;
\
gnuArch
=
"
$(
arch
)
"
;
\
# https://bugs.python.org/issue44319
sed -i 's/PKG_CONFIG openssl /PKG_CONFIG openssl11 /g' configure; \
./configure \
--build="$gnuArch" \
--enable-loadable-sqlite-extensions \
--enable-option-checking=fatal \
--enable-shared \
--with-lto \
--with-system-expat \
--without-ensurepip \
; \
nproc="$(nproc)"; \
make -j "$nproc" \
LDFLAGS="-Wl,--strip-all" \
; \
make altinstall; \
\
cd /; \
rm -rf /usr/src/python; \
\
find /usr/local -depth \
\( \
\( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
-o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \
\) -exec rm -rf '{}' + \
; \
\
ldconfig; \
yum clean all
ENV
LD_LIBRARY_PATH=/usr/local/lib
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
ENV
PYTHON_PIP_VERSION 22.0.4
# https://github.com/docker-library/python/issues/365
ENV
PYTHON_SETUPTOOLS_VERSION 58.1.0
# https://github.com/pypa/get-pip
ENV
PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/38e54e5de07c66e875c11a1ebbdb938854625dd8/public/get-pip.py
ENV
PYTHON_GET_PIP_SHA256 e235c437e5c7d7524fbce3880ca39b917a73dc565e0c813465b7a7a329bb279a
RUN
set
-eux
;
\
\
wget
-q
-O
get-pip.py
"
$PYTHON_GET_PIP_URL
"
;
\
echo
"
$PYTHON_GET_PIP_SHA256
*get-pip.py"
|
sha256sum
-c
-
;
\
\
export
PYTHONDONTWRITEBYTECODE
=
1
;
\
\
python3.10 get-pip.py
\
--disable-pip-version-check
\
--no-cache-dir
\
--no-compile
\
"pip==
$PYTHON_PIP_VERSION
"
\
"setuptools==
$PYTHON_SETUPTOOLS_VERSION
"
\
;
\
rm
-f
get-pip.py
;
\
\
pip
--version
# install Pipenv
COPY
requirements-pipenv.txt /tmp/requirements-pipenv.txt
RUN
PIP_NO_CACHE_DIR
=
true
python3.10
-m
pip
install
-q
--require-hashes
-r
/tmp/requirements-pipenv.txt
\
&&
rm
/tmp/requirements-pipenv.txt
################ END Python ###############################################################
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