-
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.
Signed-off-by: Pradyot Ranjan <[email protected]>
- Loading branch information
Showing
8 changed files
with
91 additions
and
82 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,25 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/go | ||
{ | ||
"name": "Go", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/go:1-1.21-bullseye", | ||
"features": { | ||
"ghcr.io/akhildevelops/devcontainer-features/apt:0": {} | ||
} | ||
|
||
// 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": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "go version", | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
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,46 @@ | ||
pipeline { | ||
agent any | ||
|
||
stages { | ||
stage('Checkout') { | ||
steps { | ||
// Checkout code from a version control system (e.g., Git) | ||
echo 'Checkout' | ||
} | ||
} | ||
|
||
stage('Build') { | ||
steps { | ||
// Build your project (e.g., using Maven, Gradle, etc.) | ||
echo 'Build' | ||
} | ||
} | ||
|
||
stage('Test') { | ||
steps { | ||
// Run tests (adjust as needed based on your testing framework) | ||
echo 'Test' | ||
} | ||
} | ||
|
||
stage('Deploy') { | ||
steps { | ||
// Perform deployment steps (e.g., deploy to a server) | ||
// Note: This stage is just a placeholder; adjust based on your deployment process | ||
echo 'Deploy' | ||
} | ||
} | ||
} | ||
|
||
post { | ||
success { | ||
// Actions to take if the pipeline is successful | ||
echo 'Pipeline succeeded! Notify or perform additional tasks here.' | ||
} | ||
|
||
failure { | ||
// Actions to take if the pipeline fails | ||
echo 'Pipeline failed! Notify or perform cleanup tasks here.' | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
# Use a base image from a trusted source | ||
FROM golang:1.17 | ||
|
||
|
||
|
||
# Install any additional packages or dependencies your application needs | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /app | ||
|
||
# Copy your application files into the container | ||
COPY . /app | ||
|
||
RUN go build -o app | ||
# Expose any necessary ports | ||
EXPOSE 3001 | ||
|
||
# Define the command to run your application | ||
CMD ["./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 |
---|---|---|
|
@@ -15,7 +15,7 @@ type Person struct { | |
func root(w http.ResponseWriter, e *http.Request){ | ||
|
||
person := Person{ | ||
Name: "Prady0t", | ||
Name: "Prakhar", | ||
Age: 22, | ||
Email: "[email protected]", | ||
} | ||
|