-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#12 add dockerfile, devcon.json, readme & makefile
- Loading branch information
julien legrand
committed
Nov 6, 2023
1 parent
11e3416
commit 71378e5
Showing
4 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile | ||
{ | ||
"name": "Existing Dockerfile", | ||
"build": { | ||
// Sets the run context to one level up instead of the .devcontainer folder. | ||
"context": "..", | ||
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. | ||
"dockerfile": "../Dockerfile.devCont" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-vscode.makefile-tools", | ||
"ms-python.python" | ||
] | ||
} | ||
} | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Uncomment the next line to run commands after the container is created. | ||
// "postCreateCommand": "cat /etc/os-release", | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "devcontainer" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Py-punch Dev Container | ||
|
||
## Table of Contents | ||
- [Introduction](#introduction) | ||
- [Prerequisites](#prerequisites) | ||
- [Getting Started](#getting-started) | ||
|
||
## Introduction | ||
This repository contains the configuration for a development container that is pre-configured with the necessary tools and dependencies for working on the Py-punch project. Using a development container helps maintain a consistent and reproducible development environment for contributors. | ||
|
||
## Prerequisites | ||
Before you begin, ensure you have met the following requirements: | ||
- [Docker](https://www.docker.com/get-started) installed on your system. | ||
- [Visual Studio Code](https://code.visualstudio.com/) with the [Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension. | ||
|
||
## Getting Started | ||
To get started with the development container, follow these steps: | ||
|
||
1. Once the extension is present, simply do "CTRL+shift+p". | ||
2. Enter "Dev Containers: Reopen in Container". | ||
3. Develop your specific nodes. | ||
4. Create your punchline that allows you to test the previously written code. | ||
5. Use command make run-dev | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Build | ||
FROM ghcr.io/punchplatform/punchline-python:8.1-dev | ||
USER root | ||
RUN apt-get update && apt-get install -y --no-install-recommends make && apt-get -y install sudo && apt-get -y install git && apt-get -y install gettext-base && apt-get -y install zip | ||
#RUN useradd --create-home punch | ||
ARG VERSION | ||
ARG POETRY_USERNAME | ||
ARG POETRY_PASSWORD | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters