Skip to content

Commit

Permalink
Add latest lang versions (Python 3.12, Node.js 20, Go 1.21)
Browse files Browse the repository at this point in the history
  • Loading branch information
generalmimon committed Oct 15, 2023
1 parent 4658bb3 commit c6b8cf0
Show file tree
Hide file tree
Showing 12 changed files with 81 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/construct/python3.12-linux-x86_64/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM python:3.12-alpine

# Copy files common for all images
COPY 4img/* ./

# Install all dependencies
RUN ./prepare
RUN ./prepare-alpine-init && ./prepare-alpine-ruby && ./prepare-alpine-uninit

# Validate that we've got correct version, e.g. something like this:
#
# $ python --version
# Python 3.12.0

RUN ./validate-python '^Python 3\.12\.'
RUN ./validate-construct '^2\.10\.'
1 change: 1 addition & 0 deletions src/construct/python3.12-linux-x86_64/build
1 change: 1 addition & 0 deletions src/construct/python3.12-linux-x86_64/run-it
27 changes: 27 additions & 0 deletions src/go/1.21-linux-x86_64/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM golang:1.21-alpine

# Copy files common for all images
COPY 4img/* ./

RUN ./prepare-alpine-init

# Ruby is required for test infrastructure (aggregators, test result converters) to work
RUN ./prepare-alpine-ruby

# Required to download go-junit-report release in ./prepare-go-deps
RUN apk add curl

# Required for `go get` to work
RUN apk add git

RUN ./prepare-alpine-uninit

# Install rest of go-specific dependencies
RUN ./prepare

# Validate that we've got correct version, e.g. something like this:
#
# $ go version
# go version go1.21.3 linux/amd64

RUN ./validate '^go version go1\.21\.'
1 change: 1 addition & 0 deletions src/go/1.21-linux-x86_64/build
1 change: 1 addition & 0 deletions src/go/1.21-linux-x86_64/run-it
15 changes: 15 additions & 0 deletions src/javascript/nodejs20-linux-x86_64/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:20-alpine

# Copy files common for all images
COPY 4img/* ./

# Install all dependencies
RUN ./prepare
RUN ./prepare-alpine-init && ./prepare-alpine-ruby && ./prepare-alpine-uninit

# Validate that we've got correct version, e.g. something like this:
#
# $ node --version
# v20.8.0

RUN ./validate '^v20\.'
1 change: 1 addition & 0 deletions src/javascript/nodejs20-linux-x86_64/build
1 change: 1 addition & 0 deletions src/javascript/nodejs20-linux-x86_64/run-it
15 changes: 15 additions & 0 deletions src/python/3.12-linux-x86_64/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM python:3.12-alpine

# Copy files common for all images
COPY 4img/* ./

# Install all dependencies
RUN ./prepare
RUN ./prepare-alpine-init && ./prepare-alpine-ruby && ./prepare-alpine-uninit

# Validate that we've got correct version, e.g. something like this:
#
# $ python --version
# Python 3.12.0

RUN ./validate '^Python 3\.12\.'
1 change: 1 addition & 0 deletions src/python/3.12-linux-x86_64/build
1 change: 1 addition & 0 deletions src/python/3.12-linux-x86_64/run-it

0 comments on commit c6b8cf0

Please sign in to comment.