Giter Club home page Giter Club logo

Comments (3)

johnnymillergh avatar johnnymillergh commented on June 17, 2024

In the package.json, the a bunch of scripts were defined.

"scripts": {
  "serve": "vue-cli-service serve",
  "build:dev_dkr": "vue-cli-service build --mode development_docker",
  "build:test": "vue-cli-service build --mode test",
  "build:stage": "vue-cli-service build --mode stage",
  "build:prod": "vue-cli-service build",
  "test:unit": "vue-cli-service test:unit",
  "lint": "vue-cli-service lint --ext .ts,.js,.vue src",
  "go:travis": "npm run lint && npm run test:unit && npm run build:prod"
}

Try to use following command in your terminal, that is going to build the whole project for development_docker environment.

$ npm run build:dev_dkr

from exrx-net-crawler.

spencerthayer avatar spencerthayer commented on June 17, 2024

Seems like this doesn't work. Oh well. Let me know if you ever update the code to a working state. Please and thank you.

❯ docker build -t dockerize-vue .
[+] Building 0.7s (8/9)
 => [internal] load build definition from Dockerfile                                                   0.0s
 => => transferring dockerfile: 37B                                                                    0.0s
 => [internal] load .dockerignore                                                                      0.0s
 => => transferring context: 2B                                                                        0.0s
 => [internal] load metadata for docker.io/library/nginx:latest                                        0.6s
 => CANCELED [1/5] FROM docker.io/library/nginx@sha256:4d4d96ac750af48c6a551d757c1cbfc071692309b491b7  0.0s
 => => resolve docker.io/library/nginx@sha256:4d4d96ac750af48c6a551d757c1cbfc071692309b491b70b2b8976e  0.0s
 => => sha256:4d4d96ac750af48c6a551d757c1cbfc071692309b491b70b2b8976e102dd3fef 1.86kB / 1.86kB         0.0s
 => => sha256:dd34e67e3371dc2d1328790c3157ee42dfcae74afffd86b297459ed87a98c0fb 7.73kB / 7.73kB         0.0s
 => => sha256:5e95e5eb8be4322e3b3652d737371705e56809ed8b307ad68ec59ddebaaf60e4 1.57kB / 1.57kB         0.0s
 => [internal] load build context                                                                      0.0s
 => => transferring context: 2.84kB                                                                    0.0s
 => CACHED [2/5] COPY dist/ /usr/share/nginx/html/                                                     0.0s
 => CACHED [3/5] RUN echo ${ENV}                                                                       0.0s
 => ERROR [4/5] COPY nginx/nginx-.conf /etc/nginx/nginx.conf                                           0.0s
------
 > [4/5] COPY nginx/nginx-.conf /etc/nginx/nginx.conf:
------
failed to compute cache key: "/nginx/nginx-.conf" not found: not found
❯ docker run -it -p 8000:80 --rm dockerize-vue
Unable to find image 'dockerize-vue:latest' locally
docker: Error response from daemon: pull access denied for dockerize-vue, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

~/Desktop/exrx-net-crawler master*                                                              09:14:43 AM
❯ docker-compose up --build
can't find a suitable configuration file in this directory or any parent: not found

from exrx-net-crawler.

johnnymillergh avatar johnnymillergh commented on June 17, 2024

Seems like this doesn't work. Oh well. Let me know if you ever update the code to a working state. Please and thank you.

❯ docker build -t dockerize-vue .
[+] Building 0.7s (8/9)
 => [internal] load build definition from Dockerfile                                                   0.0s
 => => transferring dockerfile: 37B                                                                    0.0s
 => [internal] load .dockerignore                                                                      0.0s
 => => transferring context: 2B                                                                        0.0s
 => [internal] load metadata for docker.io/library/nginx:latest                                        0.6s
 => CANCELED [1/5] FROM docker.io/library/nginx@sha256:4d4d96ac750af48c6a551d757c1cbfc071692309b491b7  0.0s
 => => resolve docker.io/library/nginx@sha256:4d4d96ac750af48c6a551d757c1cbfc071692309b491b70b2b8976e  0.0s
 => => sha256:4d4d96ac750af48c6a551d757c1cbfc071692309b491b70b2b8976e102dd3fef 1.86kB / 1.86kB         0.0s
 => => sha256:dd34e67e3371dc2d1328790c3157ee42dfcae74afffd86b297459ed87a98c0fb 7.73kB / 7.73kB         0.0s
 => => sha256:5e95e5eb8be4322e3b3652d737371705e56809ed8b307ad68ec59ddebaaf60e4 1.57kB / 1.57kB         0.0s
 => [internal] load build context                                                                      0.0s
 => => transferring context: 2.84kB                                                                    0.0s
 => CACHED [2/5] COPY dist/ /usr/share/nginx/html/                                                     0.0s
 => CACHED [3/5] RUN echo ${ENV}                                                                       0.0s
 => ERROR [4/5] COPY nginx/nginx-.conf /etc/nginx/nginx.conf                                           0.0s
------
 > [4/5] COPY nginx/nginx-.conf /etc/nginx/nginx.conf:
------
failed to compute cache key: "/nginx/nginx-.conf" not found: not found
❯ docker run -it -p 8000:80 --rm dockerize-vue
Unable to find image 'dockerize-vue:latest' locally
docker: Error response from daemon: pull access denied for dockerize-vue, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

~/Desktop/exrx-net-crawler master*                                                              09:14:43 AM
❯ docker-compose up --build
can't find a suitable configuration file in this directory or any parent: not found

According to the Docker command you provided, there are some necessary environment variables missing.

I would highly suggest you to user following command to build Docker image:

$ docker-compose -f docker-compose.development_docker.yml up -d exrx-net-crawler

In the Docker compose YAML file docker-compose.development_docker.yml, there were some environment variables pre-defined.

version: "3.7"

services:
  exrx-net-crawler:
    container_name: exrx-net-crawler
    image: "ijohnnymiller/exrx-net-crawler-dev_dkr:${TAG}"
    build:
      dockerfile: Dockerfile
      context: .
      args:
        ENV: development_docker
        ENV_ALIAS: dev_dkr
    ports:
      - 8081:80
    volumes:
      - /Users/johnny/docker-file-mapping/exrx-net-crawler/log:/var/log/nginx

Hope you will make it to dockerize the app 😁

from exrx-net-crawler.

Related Issues (1)

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.