Git Product home page Git Product logo

Comments (2)

Aristat avatar Aristat commented on May 18, 2024

I guess you didn't create image locally because golang-example-app:development no public image -

Steps -

  1. make install (create folder and install packages for wire, sql-migration and dataloaden), maybe it is not needed just to check, but it will be needed to test the libraries
  2. make dependencies, it's just go mod download to download packages from go.mod
  3. DOCKER_IMAGE=golang-example-app TAG=development make docker-image - command creates docker image based on this repo locally with artifacts(configs and etc)
  4. docker compose up

you can check it - https://github.com/Aristat/golang-example-app/blob/master/scripts/docker-compose-start.sh

REMOVE_CONTAINERS=on - removes the old docker image latest before every new creation, this is just for convenience

In a real project, it is better to use some kind of circleci is for generate image and AWS ECR is for storing images or their analogues

NOTE: In this example, I did not save the ready-made docker image, the example was made just to show how to create a docker image

or it makes sense to move these steps into the docker layer, but I didn't have time to do it 😄 (maybe I'll look at it this week to make it easier to work with docker without install packages and golang locally and etc)

from golang-example-app.

sam-mix avatar sam-mix commented on May 18, 2024

thank you.

from golang-example-app.

Related Issues (4)

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.