Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
duniter4j
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clients
java
duniter4j
Commits
4c66e3a3
Commit
4c66e3a3
authored
May 25, 2018
by
Benoit Lavenier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[enh] Add dockerfile to run duniter4j ES node
parent
00d26ef5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
0 deletions
+55
-0
Dockerfile
Dockerfile
+55
-0
No files found.
Dockerfile
0 → 100644
View file @
4c66e3a3
# Image for Cesium releases on Linux.
#
#
# Building this image:
# docker build . --network=host -t duniter/duniter4j-es
#
# Test:
# docker run --net=host -t duniter/duniter4j-es
# Test (interactive mode + bash mode):
# docker run -i --net=host -t duniter/duniter4j-es bash
#
# Pull base image.
FROM
airdock/oracle-jdk:1.8
ARG
DUNITER4J_VERSION=1.0.2
ARG
LIBSODIUM_VERSION=1.0.13
# Installing dependencies
RUN
apt-get update
&&
\
apt-get
--force-yes
--yes
install
wget unzip build-essential
# Installing libsodium
RUN
wget https://download.libsodium.org/libsodium/releases/libsodium-
${
LIBSODIUM_VERSION
}
.tar.gz
&&
\
tar
-xzf
libsodium-
*
.tar.gz
&&
rm
*
.tar.gz
&&
mv
libsodium-
*
libsodium
&&
\
cd
libsodium
&&
\
./configure
&&
\
make
&&
make check
&&
\
make
install
# Create compiling user
RUN
mkdir
/duniter4j
&&
\
adduser
--system
--group
--quiet
--shell
/bin/bash
--home
/duniter4j duniter4j
&&
\
chown
duniter4j:duniter4j /duniter4j
WORKDIR
/duniter4j
#RUN cd /duniter4j && \
# wget https://git.duniter.org/clients/cesium-grp/cesium/repository/v${CESIUM_VERSION}/archive.tar.gz
# tar -xzf archive.tar.gz && rm *.tar.gz && mv cesium-* src && \
RUN
cd
/duniter4j
&&
\
wget https://github.com/duniter/duniter4j/releases/download/duniter4j-
${
DUNITER4J_VERSION
}
/duniter4j-es-
${
DUNITER4J_VERSION
}
-standalone
.zip
&&
\
unzip
*
.zip
&&
rm
*
.zip
&&
mv
duniter4j-es-
*
duniter4j-es
&&
\
mkdir
duniter4j-es/data
&&
\
chown
-R
duniter4j:duniter4j duniter4j-es
RUN
ln
-s
/duniter4j/duniter4j-es/bin/elasticsearch /usr/bin/duniter4j-es
VOLUME
/duniter4j/duniter4j-es
EXPOSE
9200 9400
USER
duniter4j
WORKDIR
/duniter4j
ENTRYPOINT
["/usr/bin/duniter4j-es"]
CMD
[]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment