Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Add Dockerfile #238

Closed
wants to merge 1 commit into from
Closed

Add Dockerfile #238

wants to merge 1 commit into from

Conversation

MVrachev
Copy link
Contributor

@MVrachev MVrachev commented Jun 6, 2019

As we discussed before #227
there are many benefits to creating a Docker image which will be run
on Heroku. That way we would be free from the limitations provided
by Heroku and we would be able to use Go modules.
Also, if one day we decide to move Precaution on another
hosting platform it will be really easy.

We won't need the ".profile" file anymore because we would install
Gosec in our Dockerfile as all other dependencies.

Closes: #227

Signed-off-by: Martin Vrachev [email protected]

@vmwclabot
Copy link

@MVrachev, you must sign our contributor license agreement before your changes are merged. Click here to sign the agreement. If you are a VMware employee, read this for further instruction.

@MVrachev MVrachev changed the title Docker image Add docker image Jun 6, 2019
@MVrachev MVrachev changed the title Add docker image Add Dockerfile Jun 6, 2019
@MVrachev MVrachev requested review from ericwb and joshuagl June 6, 2019 15:46
Copy link
Contributor

@joshuagl joshuagl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MVrachev, you must sign our contributor license agreement before your changes are merged. Click here to sign the agreement. If you are a VMware employee, read this for further instruction.

@MVrachev it looks like you need to re-auth the CLA bot

Dockerfile Outdated
# Validate Gosec tar.gz file checksum
RUN echo "490c2a0434b2b9cbb2f4c5031eafe228023f1ac41b36dddd757bff9e1de76a2b ./gosec_2.0.0_linux_amd64.tar.gz" | sha256sum -c -

# Install all nessery tools to unzip the gosec tar.gz file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nessery -> necessary

@MVrachev MVrachev closed this Jun 11, 2019
@MVrachev MVrachev reopened this Jun 11, 2019
@MVrachev MVrachev requested a review from joshuagl June 14, 2019 12:05
# Copy precaution in the root directory
COPY . precaution

# Setup a work directory for all comamnds below
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Setup a work directory for all comamnds below
# Setup a working directory for all commands below

Dockerfile Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
merge_reports.js Outdated Show resolved Hide resolved
@joshuagl joshuagl added the work-in-progress Pull request that is still in progress and shouldn't be merged label Jun 26, 2019
As we discussed before #227
there are many benefits to creating a Docker image which will be run
on Heroku. That way we would be free from the limitations provided
by Heroku and we would be able to use Go modules.
Also, if one day we decide to move Precaution on another
hosting platform it will be really easy.

We won't need the ".profile" file anymore because we would install
Gosec in our Dockerfile as all other dependencies.

Signed-off-by: Martin Vrachev <[email protected]>
@MVrachev MVrachev closed this Aug 23, 2020
@MVrachev MVrachev deleted the docker-image branch August 23, 2020 16:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
work-in-progress Pull request that is still in progress and shouldn't be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use docker image for deploying Precaution
4 participants