Skip to content

Commit 80f1e18

Browse files
committed
init
0 parents  commit 80f1e18

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+16760
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Use the specified image as the base
2+
FROM mcr.microsoft.com/devcontainers/universal:2-linux
3+
4+
# Set the working directory
5+
WORKDIR /app
6+
7+
# Update the package lists
8+
RUN apt-get update
9+
10+
# Install poetry using pipx
11+
RUN pipx install poetry
12+
13+
# Copy the current directory contents into the container at /app
14+
COPY ../ /app
15+
16+
# Set environment variables
17+
ENV MY_NAME="John Doe"
18+
19+
# Expose port 3000
20+
EXPOSE 3000
21+
22+
# Define the command to run your app using CMD which keeps the container running.
23+
CMD ["poetry", "run", "dev"]
24+
25+
# Set the user to appuser
26+
USER appuser
27+
28+
# Healthcheck
29+
HEALTHCHECK CMD curl --fail http://localhost:3000 || exit 1

.devcontainer/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Dev container
2+
This project includes a [dev container](https://containers.dev/), which lets you use a container as a full-featured dev environment.
3+
4+
You can use the dev container configuration in this folder to build and run the app without needing to install any of its tools locally! You can use it in [GitHub Codespaces](https://github.com/features/codespaces) or the [VS Code Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).
5+
6+
## Tips and tricks
7+
If you are working with the same repository folder in a container and Windows, you'll want consistent line endings (otherwise you may see hundreds of changes in the SCM view). The .gitattributes file in the root of this repo will disable line ending conversion and should prevent this. See tips and tricks for more info.
8+
If you'd like to review the contents of the image used in this dev container, you can check it out in the devcontainers/images repo.

.devcontainer/devcontainer.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/universal
3+
{
4+
"name": "Python server",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"build": {
7+
"dockerfile": "Dockerfile"
8+
// Update 'VARIANT' to pick a non-default Dockerfile variant.
9+
// "args": { "VARIANT": "buster" }
10+
},
11+
12+
// Or use docker-compose file.
13+
// "dockerComposeFile": ["docker-compose.yml"],
14+
// "service": "devcontainer",
15+
// "workspaceFolder": "/app",
16+
17+
// Features to add to the dev container. More info: https://containers.dev/features.
18+
// "features": {},
19+
20+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
21+
"forwardPorts": [3000],
22+
23+
// Use 'postCreateCommand' to run commands after the container is created.
24+
"postCreateCommand": "poetry install"
25+
26+
// Configure tool-specific properties.
27+
// "customizations": {},
28+
29+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
30+
// "remoteUser": "root"
31+
}

.devcontainer/docker-compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: '3.8'
2+
services:
3+
devcontainer:
4+
build:
5+
context: .
6+
dockerfile: Dockerfile
7+
8+
ports:
9+
- "3080:3080"

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.venv/
2+
**/aws
3+
node_modules
4+
**/node_modules/
5+
dist/
6+
**/build/

.env.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Description: Example of .env file
2+
# Usage: Copy this file to .env and change the values
3+
# according to your needs
4+
# Do not commit .env file to git
5+
# Do not change .env.example file
6+

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* text=auto eol=lf
2+
*.{cmd,[cC][mM][dD]} text eol=crlf
3+
*.{bat,[bB][aA][tT]} text eol=crlf
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**Browser and Version**
14+
- Browser [e.g. chrome, safari]
15+
- Version [e.g. 22]
16+
17+
**To Reproduce**
18+
Steps to reproduce the behavior:
19+
1. Go to '...'
20+
2. Click on '....'
21+
3. Scroll down to '....'
22+
4. See error
23+
24+
**Screenshots**
25+
If applicable, add screenshots to help explain your problem.
26+
27+
**Additional context**
28+
Add any other context about the problem here.

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for more information:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
6+
7+
version: 2
8+
updates:
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly

0 commit comments

Comments
 (0)