Compare commits
8 Commits
ef5f38b329
...
ef27fc0327
Author | SHA1 | Date |
---|---|---|
Vargas, Dan | ef27fc0327 | |
Vargas, Dan | 9462caa94f | |
Vargas, Dan | 76e0f7d76a | |
Thomas | b1a843759d | |
Dan Vargas | 148c7414f3 | |
Victor Frazao | 5d61648b10 | |
Victor Frazao | 6285b7ea1d | |
Victor Frazao | 9a307e6766 |
|
@ -5,9 +5,11 @@ RUN for i in $(seq 1001 1500); do \
|
|||
useradd -M runner$i -g $i -u $i ; \
|
||||
done
|
||||
RUN apt-get update && \
|
||||
apt-get install -y libxml2 gnupg tar coreutils util-linux libc6-dev binutils build-essential && \
|
||||
apt-get install -y libxml2 gnupg tar coreutils util-linux libc6-dev binutils build-essential locales libpcre3-dev libevent-dev && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
|
||||
|
||||
ENV NODE_ENV=production
|
||||
WORKDIR /piston_api
|
||||
COPY ["package.json", "yarn.lock", "./"]
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
PREFIX=$(realpath $(dirname $0))
|
||||
|
||||
curl -L "https://github.com/crystal-lang/crystal/releases/download/0.36.1/crystal-0.36.1-1-linux-x86_64.tar.gz" -o crystal.tar.gz
|
||||
tar xzf crystal.tar.gz --strip-components=1
|
||||
rm crystal.tar.gz
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Compile crystal files into out file
|
||||
crystal build "$@" -o out --no-color && \
|
||||
chmod +x out
|
|
@ -0,0 +1 @@
|
|||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"language": "crystal",
|
||||
"version": "0.36.1",
|
||||
"author": "Dan Vargas <danvargas46@gmail.com>",
|
||||
"aliases": ["crystal", "cr"]
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
shift # Filename is only used to compile
|
||||
./out "$@"
|
|
@ -0,0 +1 @@
|
|||
puts("OK")
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put instructions to build your package in here
|
||||
PREFIX=$(realpath $(dirname $0))
|
||||
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
|
||||
curl "http://gondor.apana.org.au/~herbert/dash/files/dash-0.5.11.tar.gz" -o dash.tar.gz
|
||||
tar xzf dash.tar.gz --strip-components=1
|
||||
|
||||
./configure --prefix "$PREFIX" &&
|
||||
make -j$(nproc) &&
|
||||
make install -j$(nproc)
|
||||
|
||||
cd ../
|
||||
|
||||
rm -rf build
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"language": "dash",
|
||||
"version": "0.5.11",
|
||||
"aliases": ["dash"],
|
||||
"author": "Dan Vargas <danvargas46@gmail.com>"
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put instructions to run the runtime
|
||||
dash "$@"
|
|
@ -0,0 +1 @@
|
|||
echo "OK"
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export LC_ALL=en_US.UTF-8
|
||||
export PATH=$PWD/bin:$PATH
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export LC_ALL=en_US.UTF-8
|
||||
export PATH=$PWD/bin:$PATH
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
curl -OL "https://static.rust-lang.org/dist/rust-1.50.0-x86_64-unknown-linux-gnu.tar.gz"
|
||||
tar xzvf rust-1.50.0-x86_64-unknown-linux-gnu.tar.gz
|
||||
rm rust-1.50.0-x86_64-unknown-linux-gnu.tar.gz
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# https://stackoverflow.com/questions/38041331/rust-compiler-cant-find-crate-for-std
|
||||
# Rust compiler needs to find the stdlib to link against
|
||||
rustc -o binary -L ${RUST_INSTALL_LOC}/rustc/lib -L ${RUST_INSTALL_LOC}/rust-std-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib "$@"
|
||||
chmod +x binary
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export PATH=$PWD/rust-1.50.0-x86_64-unknown-linux-gnu/rustc/bin/:$PATH
|
||||
export RUST_INSTALL_LOC=$PWD/rust-1.50.0-x86_64-unknown-linux-gnu
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"language": "rust",
|
||||
"version": "1.50.0",
|
||||
"aliases": ["rs"],
|
||||
"author": "Victor Frazao <luiz_victor_frazao@hotmail.com>"
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
./binary "$@"
|
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
println!("OK");
|
||||
}
|
Loading…
Reference in New Issue