Coder Social home page Coder Social logo

Docker setup about open-pixel-art HOT 9 CLOSED

deadpyxel avatar deadpyxel commented on June 3, 2024
Docker setup

from open-pixel-art.

Comments (9)

MatejMecka avatar MatejMecka commented on June 3, 2024 1

Hey @dkundel and @deadpyxel I submitted a Pull Request #1060 for a Docker image. If you'd like to give Feedback, suggest changes or get it merged feel free to leave a comment :D

from open-pixel-art.

welcome avatar welcome commented on June 3, 2024

Thank you so much for opening your first issue for this project! We'll try to get back to it as quickly as possible. While you are waiting...here's a random picture of a corgi (powered by dog.ceo)

picture of dog

from open-pixel-art.

dkundel avatar dkundel commented on June 3, 2024

I don't use docker too much and didn't think about it because it's a static website deployed to Netlify. I'd love to have the setup as easy as possible but if you could elaborate a bit more about the benefits and any changes it would create to the experience, I'm open for it.

from open-pixel-art.

deadpyxel avatar deadpyxel commented on June 3, 2024

Sure thing.

Description

The idea is that, additionally to the current setup, we would offer an option to allow the contributor to setup a docker development environment.

Context

  • One of the benefits is that the user would not have to install dependencies on their machine, having less problems with conflicting versions of node/packages and broken system configs;
  • Another point is that by having that setup, the verification steps could be automated, and it would make the contribution process simpler, with less rejected PRs;
  • Personally, I believe that learning how to setup a project using docker is a good thing for any developer to know, since it is currently used in many businesses;

Possible Implementation

We could define a Dockerfile with something like what is shown in Dockerizing a NodeJS application:

FROM node:lts-alpine

# Create app directory
WORKDIR /usr/src/app

# Install app dependencies
COPY package*.json ./
RUN npm install

# If you are building your code for production
# RUN npm ci --only=production

# Bundle app source
COPY . .

# Here would come the formatting and verification steps.

EXPOSE 3000
CMD [ "npm", "start" ]

This is my current idea. We can adjust it for whatever are the project needs.

from open-pixel-art.

dkundel avatar dkundel commented on June 3, 2024

I think that's fine. If you'd want to work on a Dockerfile and also add the part to the CONTRIBUTING.md on how to use it as an alternative (don't replace the basic setup) feel free to go for it

from open-pixel-art.

deadpyxel avatar deadpyxel commented on June 3, 2024

Sure, I'll be working on this then. I just ask you to review the changes I make on the README and CONTRIBUTING.

from open-pixel-art.

dkundel avatar dkundel commented on June 3, 2024

For sure :) I'll review it all.

from open-pixel-art.

deadpyxel avatar deadpyxel commented on June 3, 2024

Congratulations on your PR, you made a better work than I was able to come up. I was forgetting about the additional files for testing.

from open-pixel-art.

dkundel avatar dkundel commented on June 3, 2024

Thank you for your contribution @MatejMecka :) I'll close this one :)

from open-pixel-art.

Related Issues (20)

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.