Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Oceano2python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
US191
Oceano2python
Commits
4dc2ae03
Commit
4dc2ae03
authored
5 years ago
by
jacques.grelet_ird.fr
Browse files
Options
Downloads
Patches
Plain Diff
add docker alpine image
parent
568ad13b
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
docker/.bashrc
+32
-0
32 additions, 0 deletions
docker/.bashrc
docker/.dockerignore
+5
-0
5 additions, 0 deletions
docker/.dockerignore
docker/Dockerfile
+66
-0
66 additions, 0 deletions
docker/Dockerfile
docker/README.md
+19
-0
19 additions, 0 deletions
docker/README.md
with
122 additions
and
0 deletions
docker/.bashrc
0 → 100644
+
32
−
0
View file @
4dc2ae03
# ~/.bashrc: executed by bash(1) for non-login shells.
# Note: PS1 and umask are already set in /etc/profile. You should not
# need this unless you want different defaults for root.
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
# umask 022
# You may uncomment the following lines if you want `ls' to be colorized:
export
LS_OPTIONS
=
'--color=auto'
# eval "`dircolors`"
alias ls
=
'ls $LS_OPTIONS'
alias
ll
=
'ls $LS_OPTIONS -l'
alias
l
=
'ls $LS_OPTIONS -lA'
alias
la
=
'ls -la'
alias
h
=
'history'
#
# Some more alias to avoid making mistakes:
alias rm
=
'rm -i'
alias cp
=
'cp -i'
alias mv
=
'mv -i'
alias
inc
=
'perl -le"print for @INC"'
echo
"Trying to source
${
DRIVE
}
/
${
CRUISE
}
/local/etc/skel/.bashrc.
${
CRUISE
}
"
if
[
-f
${
DRIVE
}
/
${
CRUISE
}
/local/etc/skel/.bashrc.
${
CRUISE
}
]
;
then
.
${
DRIVE
}
/
${
CRUISE
}
/local/etc/skel/.bashrc.
${
CRUISE
}
echo
"Yes, seems good !!!"
else
echo
"Can't source file !!! check your network, hard drive and/or ENV variables !!!"
fi
This diff is collapsed.
Click to expand it.
docker/.dockerignore
0 → 100644
+
5
−
0
View file @
4dc2ae03
.git
.travis.yml
*Dockerfile*
README.md
LICENSE.txt
This diff is collapsed.
Click to expand it.
docker/Dockerfile
0 → 100644
+
66
−
0
View file @
4dc2ae03
FROM
alpine:3.8
MAINTAINER
Jacques Grelet "Jacques.Grelet@ird.fr"
ENV
PACKAGES="\
dumb-init \
musl \
libc6-compat \
linux-headers \
build-base \
bash \
make \
git \
cmake \
netcdf-bin \
libnetcdf-dev \
libxml2 \
libxml2-dev \
ca-certificates \
libgcc \
libstdc++ \
tcl \
tk \
libssl1.0 \
net-tools \
iputils-ping \
"
ENV
PYTHON_PACKAGES="\
numpy \
matplotlib \
scipy \
basemap \
toml \
pynmea2 \
pySerial \
netCDF4 \
seawater \
PyInstaller \
PySimpleGUI \
PySimpleGUIQt \
ConfigParser \
PySide2 \
PyAstronomy \
"
RUN
apk add
--no-cache
--virtual
build-dependencies python3
\
&&
apk add
--virtual
build-runtime
\
build-base python3-dev freetype-dev pkgconfig
\
&&
ln
-s
/usr/include/locale.h /usr/include/xlocale.h
\
&&
python3
-m
ensurepip
\
&&
rm
-r
/usr/lib/python
*
/ensurepip
\
&&
pip3
install
--upgrade
pip setuptools
\
&&
ln
-sf
/usr/bin/python3 /usr/bin/python
\
&&
ln
-sf
pip3 /usr/bin/pip
\
&&
rm
-r
/root/.cache
\
&&
pip
install
--no-cache-dir
$PYTHON_PACKAGES
\
&&
apk del build-runtime
\
&&
apk add
--no-cache
--virtual
build-dependencies
$PACKAGES
\
&&
rm
-rf
/var/cache/apk/
*
VOLUME
/data
RUN
groupadd
-r
scientifiques
&&
useradd
-r
-g
scientifiques
-p
antea science
USER
science
WORKDIR
/home/science
#COPY .bashrc /root
COPY
.bashrc /home/science
This diff is collapsed.
Click to expand it.
docker/README.md
0 → 100644
+
19
−
0
View file @
4dc2ae03
#Docker image for Python oceanographic containers
## build image from Docker file:
''''
docker build -t jgrelet/oceano2python:3.7 -f Dockerfile .
''''
## pull pull the existing images from Docker hub:
''''
docker pull jgrelet/oceano2python:3.6
''''
## run the container:
''''
docker run -it --rm -v /D_DRIVE:/data -e CRUISE="$CRUISE" -e DRIVE=/data python /bin/bash
''''
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