forked from denoland/deno_docker
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
c963f0b
commit 364f74b
Showing
34 changed files
with
651 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
sudo: required | ||
before_install: | ||
- sudo apt-get update | ||
services: | ||
- docker | ||
script: | ||
- set -e | ||
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin | ||
- bash ./version.sh | ||
- bash ./version.sh > version.txt && cat version.txt | ||
- docker-compose build --build-arg DENO_VERSION=$(cat version.txt) jessie | ||
- docker-compose build --build-arg DENO_VERSION=$(cat version.txt) slim | ||
- docker-compose push jessie | ||
- docker tag dockerimages/deno:jessie dockerimages/deno:jessie-$(cat version.txt) | ||
- docker push dockerimages/deno:jessie-$(cat version.txt) | ||
- docker tag dockerimages/deno:jessie dockerimages/deno:latest | ||
- docker push dockerimages/deno:latest | ||
- docker-compose push slim | ||
- docker tag dockerimages/deno:slim dockerimages/deno:slim-$(cat version.txt) | ||
- docker push dockerimages/deno:slim-$(cat version.txt) | ||
env: | ||
global: | ||
- secure: aBkNQEwevRNEX2Y0ax+HiV8dOglvi7h0U0lU0MzQhv73MAgYKVtGx39+oSDaTjlGdLg2a9DHGYdya5ae6gTlSfsLdkPncPSQ5fd/xAhKJ6w7em/VdKk2Fxy3sc52xn2EQWcbJIETOjpMV7HS8Suq8FsDi96AjqCI0jPwphg3yH41FJ64YkjRQilvoIGxx5tcFaH1VK9S6Z2TTUwW4G2Cavit3EQ7DqnFRMDrxCjfGOdaCl9NO1mWTcc1CBbXMNZX8Hzfnwz/lDlTIrFpqRx3EJZ/EOw1ZRL/JZyTpYs6iJuvIAF2R1iv6WtZdu3jet3+J1SW37L78C+/uDnYDL24AdrIYS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1aywXIBMJwvJWJqEkLqpFw58iH/Ko6p8XCMFINvxm4TlfQziN0fLvQUIGZkePmf7rMtdLLHZ6/Qdk4CETxt1bPQ6vcVoRNW1eOJBP00AwQK43qXGmlT7CAWWebzwCI2bVXvB6Ww53EWa95aqCeSycGXhMb9OkFzolV3f+hunVjkS6+eqOj3GaS4ju5yPmqUG5qfC2MjOc5uSXIIVl4mFWGP72gNKpMsluuhB45cqDan5VTwlp+4owN3mKENBZx3Zexj0B5clhiUKTxMN+gKhY18FgB3fnQxlsFcGP3lrom/nY9svAb3v1O6SH29Nte6AcASdxbhu7iEtAhH/8Hex/uMASfG0YXeYuBiIlaqoiZdN6cVtmtEe49YhSdrLGl9LngRGF+zOEC62x+fACiCZlgZPV+9TpGYCL77PjyCalVtSxIhdESONDMictD8vzHFhJpuU25/HoDsStTTXztA2vcEuRYCvH5w8zxzOedmqQbFAlYswdYNEV9CuRKFzsyX0yKqxUtRGLBEqVHdUIgiDxwybR6t80jHu+46N0GN6kMaQ84dYinjXcpRd6qZLpIZsHqBpX7MMVmvoB6OssjzvMRq0pdEmyfYv+mBGJ7wZKbSNjSGRqrkzs0nl8cto= |
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 @@ | ||
.git |
File renamed without changes.
File renamed without changes.
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 @@ | ||
bashbrew-arch variants | ||
amd64 stretch, ubuntu |
File renamed without changes.
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,15 @@ | ||
FROM debian:jessie-slim | ||
|
||
ARG DENO_VERSION | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
curl \ | ||
&& apt-get clean -y \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& curl -fsSLO --compressed "https://github.com/denoland/deno/releases/download/$DENO_VERSION/deno_linux_x64.gz" \ | ||
&& gunzip -c deno_linux_x64.gz > /usr/local/bin/deno \ | ||
&& chmod u+x /usr/bin/deno \ | ||
&& rm deno_linux_x64.gz | ||
|
||
CMD [ "deno" ] |
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,15 @@ | ||
FROM debian:jessie | ||
|
||
ARG DENO_VERSION | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
curl \ | ||
&& apt-get clean -y \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& curl -fsSLO --compressed "https://github.com/denoland/deno/releases/download/$DENO_VERSION/deno_linux_x64.gz" \ | ||
&& gunzip -c deno_linux_x64.gz > /usr/local/bin/deno \ | ||
&& chmod u+x /usr/bin/deno \ | ||
&& rm deno_linux_x64.gz | ||
|
||
CMD [ "deno" ] |
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,8 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||
set -- deno "$@" | ||
fi | ||
|
||
exec "$@" |
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,8 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||
set -- deno "$@" | ||
fi | ||
|
||
exec "$@" |
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
File renamed without changes.
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 was deleted.
Oops, something went wrong.
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 @@ | ||
version: '3.2' | ||
|
||
services: | ||
latests: | ||
build: | ||
context: ./0/stretch/ | ||
dockerfile: Dockerfile | ||
args: | ||
DENO_VERSION: 0.37.1 | ||
image: dockerimages/deno:latest |
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,3 @@ | ||
# deno and AWS Lambda | ||
|
||
This has been moved to its own project: https://github.com/dockerimages/deno-lambda/ |
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,4 +1,4 @@ | ||
FROM hayd/alpine-deno:0.37.0 | ||
FROM dockerimages/deno:0.37.1 | ||
|
||
EXPOSE 1993 | ||
|
||
|
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,5 @@ | ||
FROM dockerimages/deno:0.37.1 | ||
|
||
COPY . . | ||
|
||
CMD deno ./main.ts |
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,6 @@ | ||
# dockerimages/deno example project | ||
|
||
Run with: | ||
```bash | ||
docker-compose run deno | ||
``` |
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,5 @@ | ||
version: '3' | ||
|
||
services: | ||
deno: | ||
build: . |
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,14 @@ | ||
console.log("Hello World"); | ||
|
||
|
||
setTimeout(() => { | ||
console.log("World"); | ||
}, 10); | ||
|
||
console.log("Hello"); | ||
|
||
const id = setTimeout(() => { | ||
console.log("Not printed"); | ||
}, 10000); | ||
|
||
clearTimeout(id); |
File renamed without changes.
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 @@ | ||
version: '3.2' | ||
|
||
services: | ||
cache: | ||
build: | ||
context: . | ||
dockerfile: ./cache.build.dockerfile | ||
image: dockerimages/deno:_build-cache | ||
master: | ||
build: | ||
context: . | ||
dockerfile: ./master.dockerfile | ||
image: dockerimages/deno:master | ||
stretch-slim: | ||
build: | ||
context: . | ||
dockerfile: stretch-slim.build.dockerfile | ||
args: | ||
DENO_VERSION: 0.2.4 | ||
image: dockerimages/deno:master-stretch-slim |
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,39 @@ | ||
FROM phusion/baseimage | ||
|
||
# complete ccache setup | ||
ENV DENO_BUILD_MODE=release | ||
ENV PATH="/usr/lib/ccache/:$PATH" | ||
ENV CCACHE_SLOPPINESS=time_macros | ||
ENV CCACHE_CPP2=yes | ||
ENV PATH=/root/.cargo/bin:$PATH | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
libgtk-3-dev \ | ||
pkg-config \ | ||
ccache \ | ||
curl \ | ||
gnupg \ | ||
build-essential \ | ||
git \ | ||
&& apt-get clean -y \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
# set up ccache | ||
&& mkdir -p /root/.ccache/ && touch /root/.ccache/ccache.conf \ | ||
# install nodejs | ||
&& curl -sL https://deb.nodesource.com/setup_10.x | bash - \ | ||
&& apt-get update && apt-get install -y nodejs \ | ||
&& npm install -g yarn \ | ||
# install rust | ||
&& curl -sSf https://sh.rustup.rs | sh -s -- -y \ | ||
# deno | ||
&& cd /opt/ && git clone https://github.com/denoland/deno.git \ | ||
&& cd deno && git submodule update --init --recursive \ | ||
&& ccache -s \ | ||
&& ./tools/setup.py \ | ||
&& ./tools/build.py | ||
# Accepts ninja build args | ||
# https://github.com/ninja-build/ninja/blob/ca041d88f4d610332aa48c801342edfafb622ccb/src/ninja.cc#L197-L220 | ||
|
||
WORKDIR /opt/deno | ||
|
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,7 @@ | ||
## master build deno from scratch | ||
FROM dockerimages/deno:v0.37-buildcache | ||
|
||
RUN git pull origin master && git submodule update | ||
RUN ccache -s | ||
RUN ./tools/build.py | ||
RUN mv /opt/deno/out/release/deno /usr/local/bin/deno |
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,7 @@ | ||
#FROM dockerimages/deno:master as deno_from_scratch | ||
FROM debian:stretch-slim | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
ca-certificates | ||
#WORKDIR /opt/ | ||
COPY --from=dockerimages/deno:master /opt/deno/out/debug/deno /usr/local/bin/ | ||
CMD ["deno", "--no-prompt"] |
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,17 @@ | ||
#!/bin/sh | ||
DENO_VERSION=$(./version.sh | cut -c2-) | ||
docker build -t deno:${DENO_VERSION} -f ../0/stretch/Dockerfile --build-arg DENO_VERSION=$DENO_VERSION ../0/stretch/ | ||
docker tag deno:${DENO_VERSION} deno:latest | ||
docker tag deno:${DENO_VERSION} deno:${DENO_VERSION}-stretch | ||
docker tag deno:${DENO_VERSION} deno:0.37 | ||
docker tag deno:${DENO_VERSION} deno:0.37-strecht | ||
docker tag deno:${DENO_VERSION} deno:0 | ||
docker tag deno:${DENO_VERSION} deno:0-stretch | ||
|
||
docker tag deno:${DENO_VERSION} dockerimages/deno:${DENO_VERSION} | ||
docker tag deno:${DENO_VERSION} dockerimages/deno:latest | ||
docker tag deno:${DENO_VERSION} dockerimages/deno:${DENO_VERSION}-stretch | ||
docker tag deno:${DENO_VERSION} dockerimages/deno:0.37 | ||
docker tag deno:${DENO_VERSION} dockerimages/deno:0.37-strecht | ||
docker tag deno:${DENO_VERSION} dockerimages/deno:0 | ||
docker tag deno:${DENO_VERSION} dockerimages/deno:0-stretch |
Oops, something went wrong.