Giter Club home page Giter Club logo

docker's People

Contributors

forecho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker's Issues

docker镜像构建失败

按照README搭建,在构建WEB部分镜像时提示FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory Aborted (core dumped)

根据错误提示
npm ERR! [email protected] build: npm run color-less && node --max_old_space_size=8192 ./node_modules/@angular/cli/bin/ng build --prod "--prod" "--build-optimizer"
,以及谷歌搜索,猜测可能是构建需要8GB内存,希望项目主能够提供已经构建的docker镜像。

root@vultr:~/cashwarden-docker# docker-compose up -d
Building web
Step 1/14 : FROM node:13-alpine as initial-stage
 ---> 8216bf4583a5
Step 2/14 : WORKDIR /srv
 ---> Using cache
 ---> 9c5cb5edea5a
Step 3/14 : COPY package*.json ./
 ---> Using cache
 ---> 83bae22d8e6b
Step 4/14 : RUN npm install
 ---> Using cache
 ---> 44dbe173dd7a

Step 5/14 : FROM initial-stage AS build-stage
 ---> 44dbe173dd7a
Step 6/14 : WORKDIR /srv
 ---> Using cache
 ---> 9bec43092c17
Step 7/14 : COPY . .
 ---> Using cache
 ---> c45c91e612cb
Step 8/14 : RUN npm run build -- --prod --build-optimizer
 ---> Running in 12bc58cd5f6b

> [email protected] build /srv
> npm run color-less && node --max_old_space_size=8192 ./node_modules/@angular/cli/bin/ng build --prod "--prod" "--build-optimizer"


> [email protected] color-less /srv
> node scripts/color-less.js


<--- Last few GCs --->

[28:0x565085140d40]    26677 ms: Mark-sweep 488.4 (494.1) -> 487.9 (494.4) MB, 1140.8 / 0.0 ms  (average mu = 0.088, current mu = 0.018) allocation failure scavenge might not succeed
[28:0x565085140d40]    27689 ms: Mark-sweep 488.6 (494.4) -> 488.3 (494.9) MB, 1008.1 / 0.0 ms  (average mu = 0.049, current mu = 0.004) allocation failure scavenge might not succeed


<--- JS stacktrace --->

==== JS stack trace =========================================

    0: ExitFrame [pc: 0x5650819a9439]
Security context: 0x0bcfae4c0921 <JSObject>
    1: new constructor(aka Declaration) [0x2a8593954931] [/srv/node_modules/less/lib/less/tree/declaration.js:~46] [pc=0x3f36e5aaa27](this=0x203da6ef70a1 <Declaration map = 0xce55f5f3bb1>,0x14b09db9ed71 <String[10]: background>,0x238fed681b41 <Color map = 0x12ffbaf09401>,0x014983740739 <String[#0]: >,0x0149837406f1 <false>,3830,0x3fee817730a1 <Object map = 0...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Aborted (core dumped)
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! [email protected] build: `npm run color-less && node --max_old_space_size=8192 ./node_modules/@angular/cli/bin/ng build --prod "--prod" "--build-optimizer"`
npm ERR! Exit status 134
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-10-24T12_11_19_633Z-debug.log
ERROR: Service 'web' failed to build : The command '/bin/sh -c npm run build -- --prod --build-optimizer' returned a non-zero code: 134

部署出错

执行 docker-compose up -d 后出错:

root@CY101:/mnt/c/Users/cyang/ubuntu/docker/cashwarden-docker# docker-compose up -d
Building api
Step 1/15 : FROM php:7.4.3-apache
 ---> d753d5b380a1
Step 2/15 : ARG TIMEZONE
 ---> Using cache
 ---> 2a41defdbce1
Step 3/15 : RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list     && sed -i 's|security.debian.org/debian-security|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list     && requirements="vim cron mariadb-client libwebp-dev libxpm-dev libmcrypt-dev libmcrypt4 libcurl3-dev libxml2-dev libmemcached-dev zlib1g-dev libc6 libstdc++6 libkrb5-3 openssl debconf libfreetype6-dev libjpeg-dev libtiff-dev libpng-dev git libmagickwand-dev ghostscript gsfonts libbz2-dev libonig-dev libzip-dev zip unzip"     && apt-get update && apt-get install -y --no-install-recommends $requirements && apt-get clean && rm -rf /var/lib/apt/lists/*     && docker-php-ext-install mysqli                               pdo_mysql                               gd
       exif                               bcmath                               opcache     && docker-php-ext-enable opcache
 ---> Using cache
 ---> 193dc9853b6a
Step 4/15 : RUN ln -snf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime && echo ${TIMEZONE} > /etc/timezone     && printf '[PHP]\ndate.timezone = "%s"\n', ${TIMEZONE} > /usr/local/etc/php/conf.d/tzone.ini     && "date"
 ---> Using cache
 ---> 5059ae10b5ab
Step 5/15 : RUN a2enmod headers &&     a2enmod rewrite
 ---> Using cache
 ---> 41fa7306a96c
Step 6/15 : COPY --from=composer /usr/bin/composer /usr/bin/composer
 ---> Using cache
 ---> 57085ab7f596
Step 7/15 : RUN composer global require --optimize-autoloader         "fxp/composer-asset-plugin"         "hirak/prestissimo" &&     composer global dumpautoload --optimize &&     composer clear-cache
 ---> Running in 6b622d4a9f5d
Changed current directory to /root/.composer


  [RuntimeException]
  No composer.json present in the current directory, this may be the cause of the following exception.



  [Composer\Downloader\TransportException]
  OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to repo.packagist.org:443


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] [--] [<packages>]...

ERROR: Service 'api' failed to build: The command '/bin/sh -c composer global require --optimize-autoloader         "fxp/composer-asset-plugin"         "hirak/prestissimo" &&     composer global dumpautoload --optimize &&     composer clear-cache' returned a non-zero code: 1

telegram_bot无法使用

RT.

已经配置好了:

TELEGRAM_BOT_NAME=
TELEGRAM_TOKEN=

运行docker exec api php yii init/telegram 时返回

Telegram set Webhook url success!

但是私聊自己的bot没反应..

docker镜像构建失败

按照README搭建,在构建WEB部分镜像时提示FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory Aborted (core dumped)

根据错误提示
npm ERR! [email protected] build: npm run color-less && node --max_old_space_size=8192 ./node_modules/@angular/cli/bin/ng build --prod "--prod" "--build-optimizer"
,以及谷歌搜索,猜测可能是构建需要8GB内存,希望项目主能够提供已经构建的docker镜像。

root@vultr:~/cashwarden-docker# docker-compose up -d
Building web
Step 1/14 : FROM node:13-alpine as initial-stage
 ---> 8216bf4583a5
Step 2/14 : WORKDIR /srv
 ---> Using cache
 ---> 9c5cb5edea5a
Step 3/14 : COPY package*.json ./
 ---> Using cache
 ---> 83bae22d8e6b
Step 4/14 : RUN npm install
 ---> Using cache
 ---> 44dbe173dd7a

Step 5/14 : FROM initial-stage AS build-stage
 ---> 44dbe173dd7a
Step 6/14 : WORKDIR /srv
 ---> Using cache
 ---> 9bec43092c17
Step 7/14 : COPY . .
 ---> Using cache
 ---> c45c91e612cb
Step 8/14 : RUN npm run build -- --prod --build-optimizer
 ---> Running in 12bc58cd5f6b

> [email protected] build /srv
> npm run color-less && node --max_old_space_size=8192 ./node_modules/@angular/cli/bin/ng build --prod "--prod" "--build-optimizer"


> [email protected] color-less /srv
> node scripts/color-less.js


<--- Last few GCs --->

[28:0x565085140d40]    26677 ms: Mark-sweep 488.4 (494.1) -> 487.9 (494.4) MB, 1140.8 / 0.0 ms  (average mu = 0.088, current mu = 0.018) allocation failure scavenge might not succeed
[28:0x565085140d40]    27689 ms: Mark-sweep 488.6 (494.4) -> 488.3 (494.9) MB, 1008.1 / 0.0 ms  (average mu = 0.049, current mu = 0.004) allocation failure scavenge might not succeed


<--- JS stacktrace --->

==== JS stack trace =========================================

    0: ExitFrame [pc: 0x5650819a9439]
Security context: 0x0bcfae4c0921 <JSObject>
    1: new constructor(aka Declaration) [0x2a8593954931] [/srv/node_modules/less/lib/less/tree/declaration.js:~46] [pc=0x3f36e5aaa27](this=0x203da6ef70a1 <Declaration map = 0xce55f5f3bb1>,0x14b09db9ed71 <String[10]: background>,0x238fed681b41 <Color map = 0x12ffbaf09401>,0x014983740739 <String[#0]: >,0x0149837406f1 <false>,3830,0x3fee817730a1 <Object map = 0...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Aborted (core dumped)
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! [email protected] build: `npm run color-less && node --max_old_space_size=8192 ./node_modules/@angular/cli/bin/ng build --prod "--prod" "--build-optimizer"`
npm ERR! Exit status 134
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-10-24T12_11_19_633Z-debug.log
ERROR: Service 'web' failed to build : The command '/bin/sh -c npm run build -- --prod --build-optimizer' returned a non-zero code: 134

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.