Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
instance_segmentation_classic
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
Maciej Wielgosz
instance_segmentation_classic
Commits
4267414e
Commit
4267414e
authored
2 years ago
by
Maciej Wielgosz
Browse files
Options
Downloads
Patches
Plain Diff
Dockerfile for oracle deploy
parent
a9bec7c2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+75
-0
75 additions, 0 deletions
Dockerfile
with
75 additions
and
0 deletions
Dockerfile
0 → 100644
+
75
−
0
View file @
4267414e
FROM
nvidia/cuda:11.2.1-cudnn8-runtime-ubuntu20.04
RUN
ln
-fs
/usr/share/zoneinfo/Europe/Warsaw /etc/localtime
RUN
apt-get update
&&
apt-get
install
-y
--no-install-recommends
\
git
\
language-pack-en-base
\
openssh-server
\
openssh-client
\
python3.6
\
python3-pip
\
python3-setuptools
\
ssh
\
curl
\
sudo
\
vim
\
wget
\
less
\
libglib2.0-0
\
libsm6
\
libxext6
\
libxrender-dev
\
libsndfile1
\
&&
rm
-rf
/var/lib/apt/lists/
*
\
&&
python3
-m
pip
install
--no-cache-dir
--upgrade
\
autopep8
\
doc8
\
docutils
\
ipython
\
pip
\
pylint
\
pytest
\
rope
\
setuptools
\
wheel
\
torch
\
tqdm
\
pandas
# Create non-root user
ARG
UID=1000
ARG
GID=1000
ARG
USERNAME=nibio
ENV
HOME /home/${USERNAME}
RUN
groupadd
-g
${
GID
}
${
USERNAME
}
\
&&
useradd
-ms
/bin/bash
-u
${
UID
}
-g
${
GID
}
-G
sudo
${
USERNAME
}
\
&&
echo
"
${
USERNAME
}
:
${
USERNAME
}
"
| chpasswd
COPY
./check_print.py $HOME
#USER $USERNAME
WORKDIR
$HOME
# install conda
ARG
UBUNTU_VER=20.04
ARG
CONDA_VER=latest
ARG
OS_TYPE=x86_64
RUN
mkdir
conda_installation
&&
cd
conda_installation
RUN
curl
-LO
"http://repo.continuum.io/miniconda/Miniconda3-
${
CONDA_VER
}
-Linux-
${
OS_TYPE
}
.sh"
RUN
bash Miniconda3-latest-Linux-x86_64.sh
-p
/miniconda
-b
RUN
/miniconda/bin/conda update conda
RUN
/miniconda/bin/conda init bash
RUN
/miniconda/bin/conda create
--name
pdal-env
python
=
3.8.13
SHELL
["/miniconda/bin/conda", "run", "-n", "pdal-env", "/bin/bash", "-c"]
RUN
echo
"conda activate pdal-env"
>>
~/.bashrc
RUN
conda
install
-c
conda-forge pdal python-pdal
#CMD ["echo", "'just test print bash'" ]
CMD
["python3", "check_print.py" ]
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