Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: install dotnet 5.0 #12

Merged
merged 1 commit into from
Nov 29, 2021
Merged
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
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ docker run -ti --rm \
| `clang` |`clang` |
| `clangd` |`llvm-toolset` |
| `gdb` |`gdb` |
|--------PHP-------- |-------------------------------------|
|--------PHP----------|-------------------------------------|
| `php` |`php` |
| `composer` |`https://getcomposer.org/` |
| `xdebug` |`pecl` |
Expand All @@ -97,6 +97,8 @@ docker run -ti --rm \
|--------GO-----------|-------------------------------------|
| `go` |`go-toolset` |
| `gopls` |`golang.org/x/tools/gopls` |
|--------.NET---------|-------------------------------------|
| `dotnet` |`dotnet-sdk-5.0` |
|------PYTHON---------|-------------------------------------|
| `python` |`python39` |
| `setuptools` |`python39-setuptools` |
Expand Down
24 changes: 13 additions & 11 deletions universal/ubi8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,24 @@ RUN dnf -y module enable python39:3.9 && \
dnf -y install python39 python39-devel python39-setuptools python39-pip nss_wrapper && \
dnf -y clean all --enablerepo='*'

RUN cd /usr/bin \
&& if [ ! -L python ]; then ln -s python3.9 python; fi \
&& if [ ! -L pydoc ]; then ln -s pydoc3.9 pydoc; fi \
&& if [ ! -L python-config ]; then ln -s python3.9-config python-config; fi \
&& if [ ! -L pip ]; then ln -s pip-3.9 pip; fi

RUN pip install pylint

# PHP
ENV PHP_VERSION=7.4
RUN dnf -y module enable php:$PHP_VERSION && \
dnf install -y --setopt=tsflags=nodocs php php-mysqlnd php-pgsql php-bcmath \
php-gd php-intl php-json php-ldap php-mbstring php-pdo \
php-pear php-zlib php-mysqli php-curl php-xml php-devel\
php-process php-soap php-opcache php-fpm ca-certificates \
php-gmp php-pecl-apcu php-pecl-zip mod_ssl hostname && \
php-gmp php-pecl-xdebug php-pecl-zip mod_ssl hostname && \
wget https://getcomposer.org/installer -O /tmp/composer-installer.php && \
php /tmp/composer-installer.php --filename=composer --install-dir=/usr/local/bin && \
pecl channel-update pecl.php.net && \
pecl install xdebug
php /tmp/composer-installer.php --filename=composer --install-dir=/usr/local/bin

ENV PHP_DEFAULT_INCLUDE_PATH=/usr/share/pear \
PHP_SYSCONF_PATH=/etc \
Expand All @@ -105,13 +111,9 @@ ENV PHP_DEFAULT_INCLUDE_PATH=/usr/share/pear \
HTTPD_DATA_ORIG_PATH=/var/www \
HTTPD_VAR_PATH=/var

RUN cd /usr/bin \
&& if [ ! -L python ]; then ln -s python3.9 python; fi \
&& if [ ! -L pydoc ]; then ln -s pydoc3.9 pydoc; fi \
&& if [ ! -L python-config ]; then ln -s python3.9-config python-config; fi \
&& if [ ! -L pip ]; then ln -s pip-3.9 pip; fi

RUN pip install pylint
# .NET
ENV DOTNET_RPM_VERSION=5.0
RUN dnf install -y dotnet-hostfxr-${DOTNET_RPM_VERSION} dotnet-runtime-${DOTNET_RPM_VERSION} dotnet-sdk-${DOTNET_RPM_VERSION}

# Cloud

Expand Down