1 parent
ff23fe51c6
commit
8565aa0550
1 file changed
+11
-20
+11
-20
@@ -25,7 +25,7 @@ RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
|||||||
python3-pip \
|
python3-pip \
|
||||||
dotnet-sdk-10.0 \
|
dotnet-sdk-10.0 \
|
||||||
openssl-devel \
|
openssl-devel \
|
||||||
zeromq-devel
|
bubblewrap # codex
|
||||||
|
|
||||||
# === setup user ===
|
# === setup user ===
|
||||||
RUN useradd -ms /bin/bash user && \
|
RUN useradd -ms /bin/bash user && \
|
||||||
@@ -81,7 +81,7 @@ RUN dotnet tool install --tool-path /usr/local/bin dotnet-ef && \
|
|||||||
| tar xz -C /usr/local/bin/omnisharp && \
|
| tar xz -C /usr/local/bin/omnisharp && \
|
||||||
chmod +x /usr/local/bin/omnisharp/OmniSharp
|
chmod +x /usr/local/bin/omnisharp/OmniSharp
|
||||||
|
|
||||||
# PHP + ZeroMQ
|
# PHP + NATS CLI
|
||||||
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
||||||
dnf -y install https://rpm.henderkes.com/static-php-1-0.noarch.rpm && \
|
dnf -y install https://rpm.henderkes.com/static-php-1-0.noarch.rpm && \
|
||||||
dnf -y module enable php-zts:static-8.5 && \
|
dnf -y module enable php-zts:static-8.5 && \
|
||||||
@@ -105,26 +105,14 @@ RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
|||||||
php-zts-bcmath \
|
php-zts-bcmath \
|
||||||
php-zts-mysqli \
|
php-zts-mysqli \
|
||||||
php-zts-imagick \
|
php-zts-imagick \
|
||||||
php-zts-grpc \
|
php-zts-sodium \
|
||||||
php-zts-devel \
|
php-zts-ffi \
|
||||||
autoconf \
|
&& curl -fsSL https://getcomposer.org/installer \
|
||||||
automake \
|
|
||||||
libtool \
|
|
||||||
make && \
|
|
||||||
git clone --depth 1 https://github.com/chrisBirmingham/phpzmq.git /tmp/phpzmq && \
|
|
||||||
cd /tmp/phpzmq && \
|
|
||||||
phpize-zts && \
|
|
||||||
./configure --with-php-config=/usr/bin/php-config-zts --with-zmq && \
|
|
||||||
make -j"$(nproc)" && \
|
|
||||||
make install && \
|
|
||||||
PHP_INI_SCAN_DIR="$(php-config-zts --ini-dir)" && \
|
|
||||||
mkdir -p "${PHP_INI_SCAN_DIR}" && \
|
|
||||||
echo 'extension=zmq.so' > "${PHP_INI_SCAN_DIR}/40-zmq.ini" && \
|
|
||||||
cd / && rm -rf /tmp/phpzmq && \
|
|
||||||
dnf remove -y php-zts-devel autoconf automake libtool && \
|
|
||||||
curl -fsSL https://getcomposer.org/installer \
|
|
||||||
| php -- --install-dir=/usr/local/bin --filename=composer
|
| php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
|
|
||||||
|
# === PHP settings
|
||||||
|
# RUN echo "ffi.enable=true" >> /etc/php-zts/conf.d/15-ffi.ini
|
||||||
|
|
||||||
# === install language servers, tools ===
|
# === install language servers, tools ===
|
||||||
RUN pnpm add -g \
|
RUN pnpm add -g \
|
||||||
npm \
|
npm \
|
||||||
@@ -141,6 +129,9 @@ RUN mkdir -p /usr/local/bin/python-bins/code-review-graph && \
|
|||||||
/usr/local/bin/python-bins/code-review-graph/bin/code-review-graph \
|
/usr/local/bin/python-bins/code-review-graph/bin/code-review-graph \
|
||||||
/usr/local/bin/code-review-graph
|
/usr/local/bin/code-review-graph
|
||||||
|
|
||||||
|
RUN curl -sf https://binaries.nats.dev/nats-io/natscli/nats@latest | sh \
|
||||||
|
&& mv nats /usr/local/bin/
|
||||||
|
|
||||||
USER user
|
USER user
|
||||||
WORKDIR /home/user
|
WORKDIR /home/user
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user