Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial Docker Setup * Setup spectrum and mocha test running containers
- Loading branch information
1 parent
414364b
commit ff4ce6d
Showing
7 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules/ | ||
build/ | ||
dist/ | ||
.git/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ dist/ | |
.settings.json | ||
xunit.xml | ||
vendor/*.msi | ||
electron.xml | ||
spectron.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM node:6.3 | ||
|
||
RUN apt-get update | ||
RUN apt-get install g++-multilib lib32z1 lib32ncurses5 -y | ||
RUN apt-get install rpm fakeroot dpkg libdbus-1-dev libx11-dev -y | ||
RUN apt-get install libavahi-compat-libdnssd-dev g++ -y | ||
RUN apt-get install gcc-4.8-multilib g++-4.8-multilib -y | ||
RUN apt-get install libgtk2.0-0 libgtk2.0-dev xvfb -y | ||
RUN apt-get install libxtst6 -y | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json /app | ||
RUN npm install | ||
|
||
RUN apt-get install libxss1 libnss3 libasound2 libgconf-2-4 -y | ||
|
||
RUN export ELECTRON_ENABLE_STACK_DUMPING=true | ||
RUN export ELECTRON_ENABLE_LOGGING=true | ||
|
||
ADD vendor/docker-entrypoint.sh /entrypoint.sh | ||
RUN chmod 777 /entrypoint.sh | ||
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] | ||
|
||
COPY . /app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: '2' | ||
|
||
services: | ||
debian-64: | ||
build: . | ||
command: npm run make:deb:64 | ||
volumes: | ||
- ./dist:/dist | ||
|
||
fedora-64: | ||
build: . | ||
command: npm run make:rpm:64 | ||
volumes: | ||
- ./dist:/dist | ||
|
||
volumes: | ||
checkout: | ||
driver: local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: '2' | ||
|
||
services: | ||
test-runner: | ||
build: . | ||
command: npm run test-unit | ||
volumes: | ||
- .:/test-output | ||
environment: | ||
XUNIT_FILE: '/test-output/electron.xml' | ||
|
||
spec-runner: | ||
build: . | ||
command: npm run test-spec | ||
volumes: | ||
- .:/test-output | ||
environment: | ||
XUNIT_FILE: '/test-output/spectron.xml' | ||
|
||
volumes: | ||
checkout: | ||
driver: local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
echo "Starting Xvfb" | ||
Xvfb :99 -ac & | ||
sleep 2 | ||
|
||
export DISPLAY=:99 | ||
echo "Executing command $@" | ||
|
||
exec "$@" |