Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
get-dem
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
Arthur Duflot
get-dem
Commits
7cecc62c
Commit
7cecc62c
authored
1 year ago
by
Arthur Duflot
Browse files
Options
Downloads
Patches
Plain Diff
push base image
parent
8dfe2b00
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#11914
failed with stages
Stage:
Stage:
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+25
-0
25 additions, 0 deletions
Dockerfile
build/entrypoint.sh
+33
-0
33 additions, 0 deletions
build/entrypoint.sh
with
58 additions
and
0 deletions
Dockerfile
0 → 100644
+
25
−
0
View file @
7cecc62c
FROM
python:3.12.1-bookworm
# Update package lists and install necessary packages
RUN
rm
-rf
/var/lib/apt/lists/
*
RUN
apt-get update
&&
apt-get
install
-y
\
libproj-dev libgeos-dev libgdal-dev
\
wget vim curl
\
# Create a virtual environment and activate it
RUN
python3
-m
venv venv
# to know GDAL version use gdal-config --version
RUN
.
venv/bin/activate
&&
pip3
install
geopandas matplotlib scipy scikit-image wheel
GDAL
==
3.0.4 scikit-learn rasterio
COPY
./build/entrypoint.sh /opt
RUN
chmod
+x /opt/entrypoint.sh
# Add application
# Clean up the image
RUN
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
# Set the entry point or command if needed
ENTRYPOINT
["/opt/entrypoint.sh"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
build/entrypoint.sh
0 → 100644
+
33
−
0
View file @
7cecc62c
#!/bin/bash
set
-x
export
LC_ALL
=
C.UTF-8
export
LANG
=
C.UTF-8
VALID_ARGS
=
$(
getopt
-o
b:c:
--long
bbox:compute
--
"
$@
"
)
if
[[
$?
-ne
0
]]
;
then
exit
1
;
fi
eval set
--
"
$VALID_ARGS
"
while
[
:
]
;
do
case
"
$1
"
in
-b
|
--bbox
)
BBOX
=
$2
shift
2
;;
-c
|
--compute
)
COMPUTE
=
$2
shift
2
;;
--
)
shift
;
break
;;
esac
done
echo
${
BBOX
}
echo
${
COMPUTE
}
\ No newline at end of file
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