Commit de2237b9 authored by Matteo Quintiliani's avatar Matteo Quintiliani
Browse files

Migrate FROM debian to alpine

parent f72007d6
FROM debian:stretch
# FROM debian:stretch
FROM alpine
MAINTAINER Valentino Lauciani <valentino.lauciani@ingv.it>
LABEL maintainer="Matteo Quintiliani <matteo.quintiliani@ingv.it>"
ENV DEBIAN_FRONTEND=noninteractive
ENV INITRD No
......@@ -8,17 +9,32 @@ ENV FAKE_CHROOT 1
ENV SWARM_BASEURL=https://volcanoes.usgs.gov/software/swarm/bin/
ENV SWARM_VERSION=swarm-2.8.0
RUN apt-get update \
&& apt-get dist-upgrade -y --no-install-recommends \
&& apt-get install -y \
build-essential \
vim \
git \
telnet \
dnsutils \
wget \
default-jre \
unzip
# Install Swarm
WORKDIR /opt
RUN wget "${SWARM_BASEURL}/${SWARM_VERSION}-bin.zip" \
&& chmod +x /opt/${SWARM_VERSION}-bin.zip \
&& unzip ${SWARM_VERSION}-bin.zip
# RUN apt-get update \
# && apt-get dist-upgrade -y --no-install-recommends \
# && apt-get install -y \
# build-essential \
# vim \
# git \
# telnet \
# dnsutils \
# wget \
# default-jre \
# unzip
RUN apk add --no-cache \
procps \
sudo \
bash \
openssh-client \
git \
ttf-dejavu \
openjdk8-jre
# Set .bashrc
RUN echo "" >> /root/.bashrc \
......@@ -33,12 +49,6 @@ RUN chmod 600 /root/.ssh/id_rsa \
&& chmod 644 /root/.ssh/known_hosts \
&& chmod 700 /root/.ssh/
# Install Swarm
WORKDIR /opt
RUN wget "${SWARM_BASEURL}/${SWARM_VERSION}-bin.zip" \
&& chmod +x /opt/${SWARM_VERSION}-bin.zip \
&& unzip ${SWARM_VERSION}-bin.zip
# Clone 'earthworm/swarm' git repository
ARG CACHEGIT=1
RUN git clone git@gitlab.rm.ingv.it:earthworm/swarm.git
......@@ -54,5 +64,6 @@ RUN cp -v /opt/swarm/Swarm* /opt/${SWARM_VERSION}/ \
# Run Swarm
WORKDIR /opt/${SWARM_VERSION}
RUN sed -i'.bak' -e "s/windowMaximized=.*$/windowMaximized=false/g" Swarm.config
RUN chmod +x swarm.sh
ENTRYPOINT ["./swarm.sh"]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment