forked from compiler-explorer/infra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25a0d83
commit fbe08cc
Showing
14 changed files
with
136 additions
and
50 deletions.
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
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
. /site.sh | ||
|
||
git clone -b release --depth 1 https://github.com/mattgodbolt/gcc-explorer.git /gcc-explorer | ||
git clone -b ${BRANCH} --depth 1 https://github.com/mattgodbolt/gcc-explorer.git /gcc-explorer | ||
cd /gcc-explorer | ||
make prereqs GDC=/usr/bin/gdc-4.9 | ||
nodejs app.js --env amazon-d |
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,56 @@ | ||
FROM ubuntu:12.04 | ||
MAINTAINER Matt Godbolt <[email protected]> | ||
|
||
RUN apt-get -y update && apt-get install -y python-software-properties | ||
RUN add-apt-repository -y ppa:chris-lea/node.js && add-apt-repository -y ppa:ubuntu-toolchain-r/test | ||
|
||
RUN apt-get -y update && apt-get install -y \ | ||
curl \ | ||
git \ | ||
make \ | ||
nodejs \ | ||
s3cmd \ | ||
clang \ | ||
g++ \ | ||
g++-4.4 \ | ||
g++-4.5 \ | ||
g++-4.5-arm-linux-gnueabi \ | ||
g++-4.6 \ | ||
g++-4.6-arm-linux-gnueabi \ | ||
g++-4.7 \ | ||
g++-4.7-multilib \ | ||
g++-4.8 \ | ||
g++-4.8-multilib \ | ||
gcc-4.4 \ | ||
gcc-4.5 \ | ||
gcc-4.6 \ | ||
gcc-4.7-base \ | ||
gcc-4.7-multilib \ | ||
gcc-4.8 \ | ||
gcc-4.8-multilib \ | ||
gcc-avr \ | ||
gcc-msp430 \ | ||
gcc-snapshot | ||
|
||
RUN mkdir -p /root | ||
RUN mkdir -p /root/.ssh | ||
COPY .s3cfg /root/ | ||
COPY known_hosts /root/.ssh/ | ||
COPY compilers.sh /root/ | ||
RUN bash /root/compilers.sh | ||
RUN rm /root/compilers.sh | ||
RUN rm /root/.s3cfg | ||
RUN apt-get purge -y curl s3cmd openjdk-6-jre-lib | ||
RUN apt-get autoremove -y | ||
RUN apt-get clean | ||
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
##################### | ||
RUN useradd gcc-user && mkdir -p /gcc-explorer /home/gcc-user && chown gcc-user /gcc-explorer && chown gcc-user /home/gcc-user | ||
ENV HOME /home/gcc-user | ||
COPY run.sh / | ||
|
||
USER gcc-user | ||
WORKDIR /gcc-explorer | ||
EXPOSE 20480 | ||
CMD ["/run.sh"] |
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,20 @@ | ||
#/bin/bash | ||
|
||
set -e | ||
cd /opt | ||
|
||
for compiler in clang-3.2.tar.gz \ | ||
clang-3.3.tar.gz \ | ||
gcc-4.9.0-0909-concepts.tar.gz \ | ||
gcc-4.9.0-with-concepts.tar.gz \ | ||
gcc-4.9.0.tar.gz \ | ||
intel.tar.gz \ | ||
; do | ||
s3cmd --config /root/.s3cfg get s3://gcc-explorer/opt/$compiler /opt/$compiler | ||
tar zxf $compiler | ||
rm $compiler | ||
done | ||
|
||
curl http://llvm.org/releases/3.4.1/clang+llvm-3.4.1-x86_64-unknown-ubuntu12.04.tar.xz | tar Jxf - | ||
|
||
find /opt -executable -type f | xargs strip || true |
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,2 @@ | ||
|1|6kkg4vXFndu74Cif5Oz9098PsY4=|k0sy2nylJdzYTwQK+aKmITvX8S8= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ== | ||
|1|9zKzfbCf91lj6RBfxx8gmxHV7Lc=|9JCgnqPKdeIaFvFF0tijjEgBWOk= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ== |
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 | ||
|
||
set -ex | ||
|
||
. /site.sh | ||
|
||
git clone -b ${BRANCH} --depth 1 https://github.com/mattgodbolt/gcc-explorer.git /gcc-explorer | ||
cd /gcc-explorer | ||
make prereqs | ||
nodejs app.js --env amazon1204 |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FROM ubuntu:12.04 | ||
FROM ubuntu:14.04 | ||
MAINTAINER Matt Godbolt <[email protected]> | ||
|
||
RUN apt-get -y update && apt-get install -y python-software-properties | ||
RUN apt-get -y update && apt-get install -y python-software-properties software-properties-common | ||
RUN add-apt-repository -y ppa:chris-lea/node.js && add-apt-repository -y ppa:ubuntu-toolchain-r/test | ||
|
||
RUN apt-get -y update && apt-get install -y \ | ||
|
@@ -10,27 +10,11 @@ RUN apt-get -y update && apt-get install -y \ | |
make \ | ||
nodejs \ | ||
s3cmd \ | ||
clang \ | ||
g++ \ | ||
g++-4.4 \ | ||
g++-4.5 \ | ||
g++-4.5-arm-linux-gnueabi \ | ||
g++-4.6 \ | ||
g++-4.6-arm-linux-gnueabi \ | ||
g++-4.7 \ | ||
g++-4.7-multilib \ | ||
clang-3.5 \ | ||
g++-4.8 \ | ||
g++-4.8-multilib \ | ||
gcc-4.4 \ | ||
gcc-4.5 \ | ||
gcc-4.6 \ | ||
gcc-4.7-base \ | ||
gcc-4.7-multilib \ | ||
gcc-4.8 \ | ||
gcc-4.8-multilib \ | ||
gcc-avr \ | ||
gcc-msp430 \ | ||
gcc-snapshot | ||
g++-4.8-powerpc-linux-gnu \ | ||
g++-arm-linux-gnueabihf \ | ||
g++-aarch64-linux-gnu | ||
|
||
RUN mkdir -p /root | ||
RUN mkdir -p /root/.ssh | ||
|
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
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
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,2 @@ | ||
# Sourced when running in development mode | ||
export BRANCH=master |
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,2 @@ | ||
# Sourced when loaded in production | ||
export BRANCH=release |