coder-backend (latest)

Published 2024-06-28 01:10:24 +00:00 by kakious

Installation

docker pull git.kakio.us/kakious/coder-backend:latest
sha256:9df8b232f441e1dbdbc283394b047eceace9ccb658cbcf2a0f6935c159b5a93d

Image Layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.ref.name=ubuntu
LABEL org.opencontainers.image.version=22.04
ADD file:140fb5108b4a2861b5718ad03b4a5174bba03589ea8d4c053e6a0b282f439ff3 in /
CMD ["/bin/bash"]
RUN /bin/sh -c apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install --yes bash build-essential ca-certificates curl htop locales man python3 python3-pip software-properties-common sudo systemd systemd-sysv unzip vim wget && add-apt-repository ppa:git-core/ppa && DEBIAN_FRONTEND="noninteractive" apt-get install --yes git # buildkit
RUN /bin/sh -c useradd coder --create-home --shell=/bin/bash --uid=1001 --user-group && echo "coder ALL=(ALL) NOPASSWD:ALL" >>/etc/sudoers.d/nopasswd # buildkit
USER coder
USER root
RUN /bin/sh -c curl -sL https://deb.nodesource.com/setup_19.x | bash - # buildkit
RUN /bin/sh -c DEBIAN_FRONTEND="noninteractive" apt-get update -y && apt-get install -y nodejs # buildkit
RUN /bin/sh -c curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - # buildkit
RUN /bin/sh -c echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list # buildkit
RUN /bin/sh -c DEBIAN_FRONTEND="noninteractive" apt-get update && apt-get install -y yarn # buildkit
RUN /bin/sh -c mkdir -p /data # buildkit
RUN /bin/sh -c DEBIAN_FRONTEND="noninteractive" apt-get install -y mysql-server # buildkit
RUN /bin/sh -c mv /var/lib/mysql /data/mysql # buildkit
RUN /bin/sh -c echo "datadir = /data/mysql" >> /etc/mysql/mysql.conf.d/mysqld.cnf # buildkit
RUN /bin/sh -c usermod -a -G coder mysql # buildkit
RUN /bin/sh -c ln -s /data/mysql /var/lib/mysql # buildkit
RUN /bin/sh -c DEBIAN_FRONTEND="noninteractive" apt-get install -y redis-server # buildkit
RUN /bin/sh -c wget https://redismodules.s3.amazonaws.com/rejson/rejson.Linux-ubuntu20.04-x86_64.2.4.5.zip # buildkit
RUN /bin/sh -c unzip rejson.Linux-ubuntu20.04-x86_64.2.4.5.zip # buildkit
RUN /bin/sh -c mkdir -p /usr/lib/redis/modules # buildkit
RUN /bin/sh -c cp rejson.so /usr/lib/redis/modules/rejson.so # buildkit
RUN /bin/sh -c rm rejson.Linux-ubuntu20.04-x86_64.2.4.5.zip && rm rejson.so # buildkit
RUN /bin/sh -c echo "loadmodule /usr/lib/redis/modules/rejson.so" >> /etc/redis/redis.conf # buildkit
RUN /bin/sh -c apt install -y rabbitmq-server # buildkit
RUN /bin/sh -c ln -s /data/rabbitmq /var/lib/rabbitmq # buildkit
RUN /bin/sh -c sudo usermod -d /data/mysql/ mysql # buildkit
CMD ["/bin/sh" "-c" "service mysql start && service redis-server start && service rabbitmq-server start && /usr/bin/code-server --bind-addr"]
USER coder

Labels

Key Value
org.opencontainers.image.ref.name ubuntu
org.opencontainers.image.version 22.04
Details
Container
2024-06-28 01:10:24 +00:00
0
OCI / Docker
linux/amd64
424 MiB
Versions (1) View all
latest 2024-06-28