Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Build all images in this project:

Build a single image from this project, with support for specific versions:

$ bin/build name[/x.x]
$ BUILD_OPTS="--platform=linux/amd64" bin/build name[/x.x]

## Images

Expand Down
4 changes: 2 additions & 2 deletions bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ function build_image() {

if [ -n "$versions" ]; then
for version in $versions; do
docker build $BUILD_OPTS -t ${NS}/$tag:$version $DIR/$subdir
docker buildx build $BUILD_OPTS -t ${NS}/$tag:$version $DIR/$subdir
done
else
docker build $BUILD_OPTS -t ${NS}/$tag $DIR/$subdir
docker buildx build $BUILD_OPTS -t ${NS}/$tag $DIR/$subdir
fi
}

Expand Down
File renamed without changes.
46 changes: 46 additions & 0 deletions runit-elixir-focal/27.2.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
FROM socrata/runit-focal AS base

# Set up environment
ENV LANG C.UTF-8

# Install Java 8. If we start using this image for things other than
# one app, we might want to revisit this.
#
# The update-ca-certs call is to work around a bug in
# ca-certificates-java that results in missing Java certs
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775775
RUN DEBIAN_FRONTEND=noninteractive apt-get -y update && \
DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confnew" --force-yes -fuy install software-properties-common && \
DEBIAN_FRONTEND=noninteractive add-apt-repository -y ppa:openjdk-r/ppa && apt-get -y update && \
DEBIAN_FRONTEND=noninteractive apt-get -y install openjdk-8-jdk && \
mkdir -p /opt && \
update-ca-certificates -f

FROM base AS build

RUN DEBIAN_FRONTEND=noninteractive apt-get -y install wget libncurses-dev libssl-dev

RUN mkdir /build /opt/erlang /opt/elixir
WORKDIR /build

RUN wget https://github.com/erlang/otp/releases/download/OTP-27.2.2/otp_src_27.2.2.tar.gz
RUN tar xzf otp_src_27.2.2.tar.gz
RUN cd otp_src_27.2.2 && ./configure --prefix=/opt/erlang && make && make install

ENV PATH /opt/erlang/bin:$PATH

RUN wget https://github.com/elixir-lang/elixir/archive/v1.18.2.tar.gz
RUN tar xzf v1.18.2.tar.gz
RUN cd elixir-1.18.2 && env PREFIX=/opt/elixir make install

FROM base

COPY --from=build /opt/ /opt/

ENV PATH /opt/erlang/bin:/opt/elixir/bin:$PATH

# Add collectd config file
COPY collectd-socket.conf /etc/collectd/conf.d/socket.conf

# LABEL must be last for proper base image discoverability
LABEL repository.socrata/runit-elixir-focal=""
8 changes: 8 additions & 0 deletions runit-elixir-focal/27.2.2/collectd-socket.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
LoadPlugin unixsock

<Plugin unixsock>
SocketFile "/var/run/collectd-unixsock"
SocketGroup "collectd"
SocketPerms "0777"
DeleteSocket true
</Plugin>