Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ETL Worker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
industrial-controls
services
dash
ETL Worker
Commits
0b418934
Commit
0b418934
authored
4 years ago
by
Brice Copy
Browse files
Options
Downloads
Patches
Plain Diff
Add JRE and Pyspark
parent
7fe0f05e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+13
-7
13 additions, 7 deletions
Dockerfile
pom.xml
+1
-1
1 addition, 1 deletion
pom.xml
with
14 additions
and
8 deletions
Dockerfile
+
13
−
7
View file @
0b418934
ARG
FROM=
cern/cc7-base
ARG
FROM=
gitlab-registry.cern.ch/industrial-controls/sw-infra/cc7-openjdk:jre-8
FROM
$FROM
ARG
SPARK_NXCALS_URL=http://photons-resources.cern.ch/downloads/nxcals_pro/spark/spark-nxcals.zip
...
...
@@ -15,18 +15,24 @@ RUN curl -s -k -L -o /tmp/nxcals-spark.zip $SPARK_NXCALS_URL && \
cd
$SPARK_HOME
&&
bsdtar
--strip-components
=
1
-xvf
/tmp/nxcals-spark.zip
&&
\
rm
/tmp/nxcals-spark.zip
RUN
adduser etlworker
-m
ENV
PATH $PATH:$SPARK_HOME:$SPARK_ENV/bin
RUN
mkdir
-p
$SPARK_HOME
/nxcals-python3-env
&&
\
chown
-R
etlworker
$SPARK_HOME
RUN
adduser etlworker
-m
COPY
entrypoint.sh /
RUN
chmod
755 /entrypoint.sh
USER
etlworker
RUN
cd
~etlworker
&&
python3
-m
venv spark-venv
&&
\
source
~etlworker/spark-venv/bin/activate
&&
\
pip3
install
pyspark pandas scipy
RUN
cd
$SPARK_HOME
&&
\
yes
|
source
$SPARK_HOME
/source-me.sh
&&
\
source
$SPARK_HOME
/nxcals-python3-env/bin/activate
&&
\
pip list
&&
pip
install
pyspark
==
2.3.2 pandas scipy influxdb
VOLUME
/auth
WORKDIR
/work
WORKDIR
$SPARK_HOME
ENTRYPOINT
["/entrypoint.sh"]
This diff is collapsed.
Click to expand it.
pom.xml
+
1
−
1
View file @
0b418934
...
...
@@ -15,7 +15,7 @@
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<spark.nxcals.url>
http://photons-resources.cern.ch/downloads/nxcals_pro/spark/spark-nxcals.zip
</spark.nxcals.url>
<docker.from>
cern/cc7-base
</docker.from>
<docker.from>
gitlab-registry.cern.ch/industrial-controls/sw-infra/cc7-openjdk:jre-8
</docker.from>
</properties>
<build>
...
...
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