Commit c51b0db6 authored by Carlos Juliano Viana's avatar Carlos Juliano Viana
Browse files

Usando a versão alpinepara compilar o sga e sgadocker.

parent d629c2f6
FROM alpine:3.7
ENV LUA_VERSION 5.3.3
ENV LUAROCKS_VERSION 2.4.2
RUN apk add --no-cache bc \
curl \
g++ \
gcc \
git \
loksh \
lua5.3-dev \
libssh-dev \
openssl-dev \
lua5.3 \
make \
perl \
unzip
RUN ln -s /usr/bin/lua5.3 /usr/bin/lua && \
ln -s /usr/bin/luac5.3 /usr/bin/luac
# RUN curl -L http://www.lua.org/ftp/lua-${LUA_VERSION}.tar.gz | tar xzf - && \
# cd /lua-$LUA_VERSION && \
# make linux test && \
# make install && \
# cd .. && rm /lua-$LUA_VERSION -rf
RUN curl -L http://luarocks.github.io/luarocks/releases/luarocks-${LUAROCKS_VERSION}.tar.gz | tar xzf - && \
cd /luarocks-$LUAROCKS_VERSION && \
./configure && \
make build && \
make install && \
cd .. && rm -rf /lua-$LUAROCKS_VERSION
RUN mkdir sgarest-daemon && \
curl -L https://git.tecgraf.puc-rio.br/csbase-dev/sgarest-daemon/-/archive/master/sgarest-daemon-master.tar.gz | tar xzf - -C sgarest-daemon --strip-components 1 && \
cd sgarest-daemon && \
luarocks install lua-schema-scm-1.rockspec && \
luarocks make sga-daemon-scm-1.rockspec && \
luarocks make sga-driver-posix-scm-1.rockspec
WORKDIR /sgad
RUN mkdir projects && mkdir algorithms && mkdir logs && mkdir -p /tmp/sgad/sandbox
RUN cp ../sgarest-daemon/collect_execution_data .
RUN cp ../sgarest-daemon/flowmonitor .
RUN rm -rf ../sgarest-daemon
COPY sgad.sh .
COPY sgad.cfg .
VOLUME /sgad/projects
VOLUME /sgad/algorithms
VOLUME /sgad/logs
ENTRYPOINT ["./sgad.sh"]
# CMD ["sgad.cfg"]
#FROM repo.tecgraf.puc-rio.br:18089/soma/sga:latest
FROM cviana/sga-posix-alpine:latest
RUN apk add --no-cache docker
FROM repo.tecgraf.puc-rio.br:18089/soma/sga:latest
#FROM repo.tecgraf.puc-rio.br:18089/soma/sga:latest
FROM cviana/sga:latest
RUN apt-get update && apt-get install -y docker.io
......
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