~boringcactus/crowbar-playground

f95730d627261e5d6d235011d2035c5b58c7531d — Melody Horn 3 years ago b70b9eb
normalize line endings
4 files changed, 47 insertions(+), 39 deletions(-)

A .editorconfig
M Dockerfile
M crowbar.local.properties
M hello-world.cro
A .editorconfig => .editorconfig +8 -0
@@ 0,0 1,8 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
charset = utf-8

M Dockerfile => Dockerfile +30 -30
@@ 1,30 1,30 @@
FROM alpine:latest AS build

RUN apk add --no-cache \
    npm \
    alpine-sdk \
    python3 \
    python3-dev \
    py3-pip

ADD . /src
ADD languages.js /src/compiler-explorer/lib/languages.js
ADD crowbar.local.properties /src/compiler-explorer/etc/config/
ADD hello-world.cro /src/compiler-explorer/examples/crowbar/default.cro

WORKDIR /src/compiler-explorer
RUN make dist

WORKDIR /src
RUN git clone git://c9x.me/qbe.git
WORKDIR /src/qbe
RUN make
RUN make install
RUN pip install crowbar-reference-compiler==0.0.4

WORKDIR /src/compiler-explorer
RUN mkdir lib/storage/data
RUN chmod a+rwx lib/storage/data
USER nobody
EXPOSE 10240
CMD node -r esm ./app.js --language Crowbar
FROM alpine:latest AS build

RUN apk add --no-cache \
    npm \
    alpine-sdk \
    python3 \
    python3-dev \
    py3-pip

ADD . /src
ADD languages.js /src/compiler-explorer/lib/languages.js
ADD crowbar.local.properties /src/compiler-explorer/etc/config/
ADD hello-world.cro /src/compiler-explorer/examples/crowbar/default.cro

WORKDIR /src/compiler-explorer
RUN make dist

WORKDIR /src
RUN git clone git://c9x.me/qbe.git
WORKDIR /src/qbe
RUN make
RUN make install
RUN pip install crowbar-reference-compiler==0.0.4

WORKDIR /src/compiler-explorer
RUN mkdir lib/storage/data
RUN chmod a+rwx lib/storage/data
USER nobody
EXPOSE 10240
CMD node -r esm ./app.js --language Crowbar

M crowbar.local.properties => crowbar.local.properties +3 -3
@@ 1,3 1,3 @@
# Settings for Crowbar
compilers=/usr/bin/crowbarc-reference
supportsBinary=false
# Settings for Crowbar
compilers=/usr/bin/crowbarc-reference
supportsBinary=false

M hello-world.cro => hello-world.cro +6 -6
@@ 1,6 1,6 @@
include "stdio.hro";

int main() {
    printf("Hello, world!\n");
    return 0;
}
include "stdio.hro";

int main() {
    printf("Hello, world!\n");
    return 0;
}