KejawenLab / SemartHris

SemartHris adalah Enterprise Grade HRIS yang khusus diperuntukan bagi Perusahaan di Willayah Hukum Indonesia
MIT License
215 stars 121 forks source link

docker build error #40

Open aviqbaihaqy opened 5 years ago

aviqbaihaqy commented 5 years ago

docker error: python-software-properties tidak bisa di install, karna sudah digantikan dengan software-properties-common, setelah coba saya hapus

eror:


Step 14/63 : RUN apt-get install php7.2 php7.2-cli php7.2-curl php7.2-intl php7.2-mbstring php7.2-xml php7.2-zip     php7.2-bcmath php7.2-cli php7.2-fpm php7.2-imap php7.2-json php7.2-opcache php7.2-apcu php7.2-xmlrpc     php7.2-bz2 php7.2-common php7.2-gd php7.2-ldap php7.2-pgsql php7.2-readline php7.2-soap php7.2-tidy php7.2-xsl php-apcu -y
 ---> Running in 9b8f244d4c29
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php7.2-curl : Depends: libcurl3 (>= 7.44.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ERROR: Service 'app' failed to build: The command '/bin/sh -c apt-get install php7.2 php7.2-cli php7.2-curl php7.2-intl php7.2-mbstring php7.2-xml php7.2-zip     php7.2-bcmath php7.2-cli php7.2-fpm php7.2-imap php7.2-json php7.2-opcache php7.2-apcu php7.2-xmlrpc     php7.2-bz2 php7.2-common php7.2-gd php7.2-ldap php7.2-pgsql php7.2-readline php7.2-soap php7.2-tidy php7.2-xsl php-apcu -y' returned a non-zero code: 100
ad3n commented 5 years ago

@baihaqyaviq: coba pakai image ubuntu 18.04 atau 16.04 Pak jangan yang latest untuk docker compose yaml-nya

aviqbaihaqy commented 5 years ago

saya tadi tambahkan RUN add-apt-repository ppa:ondrej/php bisa pak

aviqbaihaqy commented 5 years ago

setelah itu muncul:


Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-symfony$phpunit-bridge.json into cache
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-symfony$web-server-bundle.json into cache

Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 67108864 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223
PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 67108864 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223

Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.ERROR: Service 'app' failed to build: The command '/bin/sh -c mkdir -p         var/cache         var/logs         var/sessions     && chmod 777 -R var/     && composer update --prefer-dist --no-autoloader --no-scripts --no-progress --no-suggest -vvv     && composer clear-cache' returned a non-zero code: 255
ad3n commented 5 years ago

@baihaqyaviq ini hostnya pakai apa Pak? WIndows kah?

aviqbaihaqy commented 5 years ago

ini di debian pak

j1top commented 4 years ago

ini solusinya gimana ya ?

handhikadj commented 3 years ago

saya juga dapet error:

Click to expand log ``` Step 43/59 : RUN composer global require "hirak/prestissimo:~0.3" --prefer-dist --no-progress --no-suggest --optimize-autoloader --classmap-authoritative -vvv && composer clear-cache ---> Running in c4813e0a426b Changed current directory to /root/.config/composer Failed to initialize global composer: Composer could not find the config file: /root/.config/composer/composer.json To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section Running 2.0.6 (2020-11-07 11:21:17) with PHP 7.2.24-0ubuntu0.18.04.7 on Linux / 5.4.39-linuxkit Failed to initialize global composer: Composer could not find the config file: /root/.config/composer/composer.json To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section You are using the deprecated option "--no-suggest". It has no effect and will break in Composer 3. Reading ./composer.json Loading config file ./composer.json Checked CA file /etc/ssl/certs/ca-certificates.crt: valid Executing command (/root/.config/composer): git branch -a --no-color --no-abbrev -v Executing command (/root/.config/composer): git describe --exact-match --tags Executing command (CWD): git --version Executing command (/root/.config/composer): git log --pretty="%H" -n1 HEAD Executing command (/root/.config/composer): hg branch Executing command (/root/.config/composer): fossil branch list Executing command (/root/.config/composer): fossil tag list Executing command (/root/.config/composer): svn info --xml Downloading https://repo.packagist.org/packages.json [200] https://repo.packagist.org/packages.json Writing /root/.cache/composer/repo/https---repo.packagist.org/packages.json into cache Downloading https://repo.packagist.org/p2/hirak/prestissimo.json Downloading https://repo.packagist.org/p2/hirak/prestissimo~dev.json [200] https://repo.packagist.org/p2/hirak/prestissimo.json Writing /root/.cache/composer/repo/https---repo.packagist.org/provider-hirak~prestissimo.json into cache [200] https://repo.packagist.org/p2/hirak/prestissimo~dev.json Writing /root/.cache/composer/repo/https---repo.packagist.org/provider-hirak~prestissimo~dev.json into cache Reading /root/.cache/composer/repo/https---repo.packagist.org/provider-hirak~prestissimo.json from cache Reading /root/.cache/composer/repo/https---repo.packagist.org/provider-hirak~prestissimo~dev.json from cache [RuntimeException] No composer.json present in the current directory, this may be the cause of the following exception. Exception trace: () at phar:///usr/local/bin/composer/src/Composer/Command/RequireCommand.php:193 Composer\Command\RequireCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:245 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:835 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:185 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:310 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:117 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:122 Composer\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Command/GlobalCommand.php:107 Composer\Command\GlobalCommand->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:835 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:185 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:310 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:117 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:122 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:63 require() at /usr/local/bin/composer:24 [InvalidArgumentException] Package hirak/prestissimo at version ~0.3 has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version Exception trace: () at phar:///usr/local/bin/composer/src/Composer/Command/InitCommand.php:743 Composer\Command\InitCommand->findBestVersionAndNameForPackage() at phar:///usr/local/bin/composer/src/Composer/Command/InitCommand.php:437 Composer\Command\InitCommand->determineRequirements() at phar:///usr/local/bin/composer/src/Composer/Command/RequireCommand.php:189 Composer\Command\RequireCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:245 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:835 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:185 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:310 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:117 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:122 Composer\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Command/GlobalCommand.php:107 Composer\Command\GlobalCommand->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:835 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:185 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:310 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:117 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:122 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:63 require() at /usr/local/bin/composer:24 require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-scripts] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] []... ERROR: Service 'app' failed to build : The command '/bin/sh -c composer global require "hirak/prestissimo:~0.3" --prefer-dist --no-progress --no-suggest --optimize-autoloader --classmap-authoritative -vvv && composer clear-cache' returned a non-zero code: 1 ```