-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from Poc275/dev-container
Dev container support
- Loading branch information
Showing
6 changed files
with
86 additions
and
25 deletions.
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" | ||
}, | ||
|
||
// 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": [8000], | ||
|
||
// Uncomment the next line to run commands after the container is created. | ||
"postCreateCommand": "npm install", | ||
|
||
"postStartCommand": "npm start" | ||
|
||
// lets you override the statup command inside your Dockerfile instead | ||
// "overrideCommand": false | ||
|
||
// 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" | ||
|
||
// "workspaceMount": "source=${localWorkspaceFolder},target=/home/app,type=bind", | ||
// "workspaceFolder": "/home/app" | ||
} |
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,12 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for more information: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
# https://containers.dev/guide/dependabot | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "devcontainers" | ||
directory: "/" | ||
schedule: | ||
interval: weekly |
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,18 @@ | ||
FROM node:14.18.3-bullseye | ||
|
||
# RUN mkdir -p /home/app | ||
|
||
# WORKDIR /home/app | ||
|
||
# RUN chmod 777 /home/app | ||
# RUN npm install -g gatsby-cli | ||
|
||
# COPY package*.json ./ | ||
|
||
# RUN npm install | ||
|
||
# COPY . . | ||
|
||
EXPOSE 8000 | ||
|
||
# ENTRYPOINT ["npm", "start"] |
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
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 |
---|---|---|
@@ -1,29 +1,27 @@ | ||
import React from "react" | ||
import Navbar from 'react-bootstrap/Navbar' | ||
import Nav from 'react-bootstrap/Nav' | ||
import Container from 'react-bootstrap/Container'; | ||
import styles from './menu.module.scss' | ||
|
||
export default () => ( | ||
<Navbar expand="md"> | ||
<Navbar.Toggle aria-controls="navbar-content" /> | ||
<Navbar.Collapse id="navbar-content" className="justify-content-center"> | ||
<Nav> | ||
<Nav.Link href="/#about-me" className={styles.menuLink}> | ||
<span role="img" aria-label="who is this">π </span>who is this? | ||
</Nav.Link> | ||
<Nav.Link href="/#my-work" className={styles.menuLink}> | ||
<span role="img" aria-label="my work">π¨βπ» </span>my work | ||
</Nav.Link> | ||
<Navbar.Text className={styles.menuName}> | ||
<Nav.Link href="/">Peter O'Connor</Nav.Link> | ||
</Navbar.Text> | ||
<Nav.Link href="https://swiftcv.com/@poc275" className={styles.menuLink}> | ||
<span role="img" aria-label="my CV">π </span>my CV | ||
</Nav.Link> | ||
<Nav.Link href="/#contact" className={styles.menuLink}> | ||
<span role="img" aria-label="who is this">π£ </span>contact | ||
</Nav.Link> | ||
</Nav> | ||
</Navbar.Collapse> | ||
<Navbar expand="lg"> | ||
<Container> | ||
<Navbar.Brand href="/" className={styles.menuName}>Peter O'Connor</Navbar.Brand> | ||
<Navbar.Toggle aria-controls="navbar-content" /> | ||
<Navbar.Collapse id="navbar-content" className="justify-content-center"> | ||
<Nav> | ||
<Nav.Link href="/#about-me" className={styles.menuLink}> | ||
<span role="img" aria-label="who is this">π </span>who is this? | ||
</Nav.Link> | ||
<Nav.Link href="/#my-work" className={styles.menuLink}> | ||
<span role="img" aria-label="my work">π¨βπ» </span>my work | ||
</Nav.Link> | ||
<Nav.Link href="/#contact" className={styles.menuLink}> | ||
<span role="img" aria-label="who is this">π£ </span>contact | ||
</Nav.Link> | ||
</Nav> | ||
</Navbar.Collapse> | ||
</Container> | ||
</Navbar> | ||
) |
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