Compare commits

...

8 Commits

Author SHA1 Message Date
Vargas, Dan ef27fc0327 pkg(crystal-0.36.1): Add crystal 0.36.1 2021-03-17 15:50:07 +13:00
Vargas, Dan 9462caa94f pkg(dash-0.5.11): Add dash 0.5.11 2021-03-17 13:01:16 +13:00
Vargas, Dan 76e0f7d76a pkg(crystal-0.36.1): Add deps to api container 2021-03-17 12:59:14 +13:00
Thomas b1a843759d
Merge pull request #146 from vfrazao-ns1/v3-add-rust
pkg(rust-1.50.0): Add rust 1.50.0
2021-03-17 10:04:41 +13:00
Dan Vargas 148c7414f3 pkg(osabie-1.0.1/elixir-1.11.3): Fix VM warnings for osabie and elixir 2021-03-17 09:52:03 +13:00
Victor Frazao 5d61648b10 retrigger checks 2021-03-16 10:24:36 -04:00
Victor Frazao 6285b7ea1d Revert change to API Dockerfile 2021-03-15 23:08:12 -04:00
Victor Frazao 9a307e6766 pkg(rust-1.50.0): Add rust 1.50.0 2021-03-15 19:45:20 -04:00
20 changed files with 91 additions and 1 deletions

View File

@ -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", "./"]

7
packages/crystal/0.36.1/build.sh vendored Executable file
View File

@ -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

5
packages/crystal/0.36.1/compile vendored Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Compile crystal files into out file
crystal build "$@" -o out --no-color && \
chmod +x out

1
packages/crystal/0.36.1/environment vendored Normal file
View File

@ -0,0 +1 @@
export PATH=$PWD/bin:$PATH

6
packages/crystal/0.36.1/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "crystal",
"version": "0.36.1",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["crystal", "cr"]
}

4
packages/crystal/0.36.1/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
shift # Filename is only used to compile
./out "$@"

1
packages/crystal/0.36.1/test.cr vendored Normal file
View File

@ -0,0 +1 @@
puts("OK")

19
packages/dash/0.5.11/build.sh vendored Executable file
View File

@ -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

4
packages/dash/0.5.11/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

6
packages/dash/0.5.11/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "dash",
"version": "0.5.11",
"aliases": ["dash"],
"author": "Dan Vargas <danvargas46@gmail.com>"
}

4
packages/dash/0.5.11/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
dash "$@"

1
packages/dash/0.5.11/test.dash vendored Normal file
View File

@ -0,0 +1 @@
echo "OK"

View File

@ -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

View File

@ -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

5
packages/rust/1.50.0/build.sh vendored Executable file
View File

@ -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

6
packages/rust/1.50.0/compile vendored Normal file
View File

@ -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

5
packages/rust/1.50.0/environment vendored Normal file
View File

@ -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

6
packages/rust/1.50.0/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "rust",
"version": "1.50.0",
"aliases": ["rs"],
"author": "Victor Frazao <luiz_victor_frazao@hotmail.com>"
}

3
packages/rust/1.50.0/run vendored Normal file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
./binary "$@"

3
packages/rust/1.50.0/test.rs vendored Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("OK");
}