Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding .travis.yml #5

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
sudo: required
dist: xenial
notifications:
email:
recipients:
- [email protected]
on_success: change
on_failure: always

script:
- bash tests/test_runner.sh
41 changes: 22 additions & 19 deletions executionnode/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
FROM ubuntu:18.04

RUN apt-get update
# make sure that locales package is available
RUN apt-get install --reinstall -y locales
# uncomment chosen locale to enable it's generation
RUN sed -i 's/# en_IN.UTF-8 UTF-8/en_IN.UTF-8 UTF-8/' /etc/locale.gen
# generate chosen locale
RUN locale-gen en_IN.UTF-8
# Install UTF-8 locales
RUN apt-get update && \
apt-get install --reinstall -y locales && \
sed -i 's/# en_IN.UTF-8 UTF-8/en_IN.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen en_IN.UTF-8
# set system-wide locale settings
ENV LANG en_IN.UTF-8
ENV LANGUAGE en_IN
ENV LC_ALL en_IN.UTF-8
# verify modified configuration
RUN dpkg-reconfigure --frontend noninteractive locales

RUN apt-get update && apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
RUN bash nodesource_setup.sh
RUN apt-get update && apt-get install -y software-properties-common && \
apt-add-repository -y ppa:webupd8team/java && apt-get update && \
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | \
debconf-set-selections && apt-get install -y --force-yes oracle-java8-installer \
nodejs build-essential git && add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
apt-get update && apt-get install -y gcc-6 g++-6
RUN rm nodesource_setup.sh
# Install NodeJS 10.x
RUN dpkg-reconfigure --frontend noninteractive locales && \
apt-get update && \
apt-get install -y curl gnupg && \
curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh && \
bash nodesource_setup.sh && \
apt-get update && apt-get install --force-yes -y nodejs build-essential git && \
rm nodesource_setup.sh

RUN apt-get install -y software-properties-common && \
apt-add-repository -y ppa:webupd8team/java && \
add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
apt-get update && \
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | \
debconf-set-selections && \
apt-get install -y --force-yes oracle-java8-installer && \
apt-get install -y gcc-6 g++-6
27 changes: 13 additions & 14 deletions nodejs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
FROM ubuntu:18.04

RUN apt-get update
# make sure that locales package is available
RUN apt-get install --reinstall -y locales
# uncomment chosen locale to enable it's generation
RUN sed -i 's/# en_IN.UTF-8 UTF-8/en_IN.UTF-8 UTF-8/' /etc/locale.gen
# generate chosen locale
RUN locale-gen en_IN.UTF-8
# Install UTF-8 locales
RUN apt-get update && \
apt-get install --reinstall -y locales && \
sed -i 's/# en_IN.UTF-8 UTF-8/en_IN.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen en_IN.UTF-8
# set system-wide locale settings
ENV LANG en_IN.UTF-8
ENV LANGUAGE en_IN
ENV LC_ALL en_IN.UTF-8
# verify modified configuration
RUN dpkg-reconfigure --frontend noninteractive locales

RUN apt-get update && apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
RUN bash nodesource_setup.sh
RUN apt-get update && apt-get install --force-yes -y nodejs build-essential git
RUN rm nodesource_setup.sh
# Install NodeJS 10.x
RUN dpkg-reconfigure --frontend noninteractive locales && \
apt-get update && \
apt-get install -y curl gnupg && \
curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh && \
bash nodesource_setup.sh && \
apt-get update && apt-get install --force-yes -y nodejs build-essential git && \
rm nodesource_setup.sh
2 changes: 2 additions & 0 deletions tests/test_runner.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sudo docker build nodejs/
sudo docker build executionnode/