Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sygal-import-ws
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
sygal-import-ws
Commits
a5720c24
Commit
a5720c24
authored
6 months ago
by
Bertrand Gauthier
Browse files
Options
Downloads
Patches
Plain Diff
Amélioration du script Dockerfile.sh
parent
51635732
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile.sh
+15
-13
15 additions, 13 deletions
Dockerfile.sh
with
15 additions
and
13 deletions
Dockerfile.sh
+
15
−
13
View file @
a5720c24
...
...
@@ -22,12 +22,14 @@
export
PHP_VERSION
=
8.0
#ENV HTTP_PROXY=${http_proxy} \
# HTTPS_PROXY=${https_proxy} \
# NO_PROXY=${no_proxy} \
# http_proxy=${http_proxy} \
# https_proxy=${https_proxy} \
# no_proxy=${no_proxy}
#export HTTP_PROXY=http://proxy.domain.fr:3128 \
# HTTPS_PROXY=${HTTP_PROXY} \
# NO_PROXY=localhost,domaine.fr \
# http_proxy=${HTTP_PROXY} \
# https_proxy=${HTTP_PROXY} \
# no_proxy=${NO_PROXY}
#
#pear config-set http_proxy ${HTTP_PROXY}
apt-get
-qq
update
&&
\
apt-get
install
-y
\
...
...
@@ -95,7 +97,6 @@ apt-get -qq update && \
php
${
PHP_VERSION
}
-memcached
\
php
${
PHP_VERSION
}
-opcache
\
php
${
PHP_VERSION
}
-soap
\
# php${PHP_VERSION}-xdebug \ --> cf. install à part ci-après
php
${
PHP_VERSION
}
-xml
\
php
${
PHP_VERSION
}
-zip
\
php
${
PHP_VERSION
}
-cli
\
...
...
@@ -108,14 +109,14 @@ update-alternatives --set php /usr/bin/php${PHP_VERSION}
# Installation manuelle de xdebug 3.2.2, car les 3.3.0/1/2 provoquent une "Segmentation fault" au 22/05/2024 (à cause de PHP 8.0 ?)
pecl
install
xdebug-3.2.2
&&
\
echo
"
zend_extension=xdebug
"
>
${
PHP_CONF_DIR
}
/fpm/conf.d/20-xdebug.ini
&&
\
echo
"
zend_extension=xdebug
"
>
${
PHP_CONF_DIR
}
/cli/conf.d/20-xdebug.ini
sh
-c
"
echo
'
zend_extension=xdebug
'
>
${
PHP_CONF_DIR
}
/fpm/conf.d/20-xdebug.ini
"
&&
\
sh
-c
"
echo
'
zend_extension=xdebug
'
>
${
PHP_CONF_DIR
}
/cli/conf.d/20-xdebug.ini
"
# Package PHP Oracle OCI8
export
OCI8_PACKAGE
=
"oci8-3.0.1"
cp
/tmp/docker/resources/instantclient-basiclite-linux.x64-18.5.0.0.0dbru.zip /tmp/
cp
/tmp/docker/resources/instantclient-sdk-linux.x64-18.5.0.0.0dbru.zip /tmp/
cp
/tmp/docker/resources/instantclient-sqlplus-linux.x64-18.5.0.0.0dbru.zip /tmp/
cp
/tmp/docker/resources/instantclient-basiclite-linux.x64-18.5.0.0.0dbru.zip /tmp/
&&
\
cp
/tmp/docker/resources/instantclient-sdk-linux.x64-18.5.0.0.0dbru.zip /tmp/
&&
\
cp
/tmp/docker/resources/instantclient-sqlplus-linux.x64-18.5.0.0.0dbru.zip /tmp/
&&
\
unzip
-o
/tmp/instantclient-basiclite-linux.x64-18.5.0.0.0dbru.zip
-d
/usr/local/
&&
\
unzip
-o
/tmp/instantclient-sdk-linux.x64-18.5.0.0.0dbru.zip
-d
/usr/local/
&&
\
unzip
-o
/tmp/instantclient-sqlplus-linux.x64-18.5.0.0.0dbru.zip
-d
/usr/local/
&&
\
...
...
@@ -124,7 +125,8 @@ ln -sf /usr/local/instantclient/sqlplus /usr/bin/sqlplus && \
echo
'instantclient,/usr/local/instantclient'
| pecl
-d
php_suffix
=
${
PHP_VERSION
}
install
${
OCI8_PACKAGE
}
&&
\
sh
-c
"echo 'extension=oci8.so' >
${
PHP_CONF_DIR
}
/fpm/conf.d/30-php-oci8.ini"
&&
\
sh
-c
"echo 'extension=oci8.so' >
${
PHP_CONF_DIR
}
/cli/conf.d/30-php-oci8.ini"
&&
\
sh
-c
"echo '/usr/local/instantclient' > /etc/ld.so.conf.d/oracle-instantclient.conf"
&&
ldconfig
sh
-c
"echo '/usr/local/instantclient' > /etc/ld.so.conf.d/oracle-instantclient.conf"
&&
\
ldconfig
# Composer
#COPY --from=get-composer /usr/bin/composer /usr/local/bin/composer
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment