Skip to content

Commit

Permalink
Added updates in jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vinay-k-swift-nav committed Mar 20, 2023
1 parent 2f8c6ba commit ccf901a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# # Use a base image with C++ compiler and libraries installed
# FROM gcc:latest
# Use a base image with C++ compiler and libraries installed
FROM gcc:latest

# RUN apt-get update && apt-get install -y git
# RUN git clone https://github.com/vinay-k-swift-nav/HelloUniverse /app
RUN apt-get update && apt-get install -y git
RUN git clone https://github.com/bablooswiftnav/HelloUniverse /app

# # Set the working directory inside the container
# WORKDIR /home/vinay/hellouniverse
# Set the working directory inside the container
WORKDIR /home/vinay/hellouniverse

# # Copy the C++ source code into the container
# COPY . .
# Copy the C++ source code into the container
COPY . .

# # Compile the C++ code and generate the executable
# RUN g++ -o hellouniverse /app/index.cpp
# Compile the C++ code and generate the executable
RUN g++ -o hellouniverse /app/index.cpp

# # Set the entrypoint for the container
# ENTRYPOINT ["/hellouniverse/app"]
# Set the entrypoint for the container
ENTRYPOINT ["/hellouniverse/app"]

2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pipeline{
stages{
stage("git checkout"){
steps{
checkout scmGit(branches: [[name: '*/main']], extensions: [], userRemoteConfigs: [[url: 'https://github.com/vinay-k-swift-nav/HelloUniverse']])
checkout scmGit(branches: [[name: '*/main']], extensions: [], userRemoteConfigs: [[url: 'https://github.com/bablooswiftnav/HelloUniverse']])
}
}
stage("Run docker image"){
Expand Down

0 comments on commit ccf901a

Please sign in to comment.