- A GitHub account
- A Docker hub account
- Local Docker installation
Your codeName = thedoctor - Use it throughout the task.
We've found a data leak in our company, but before we're deleting our resources, we need you to extract the information and deliver it.
You're assigned with the creation of a device that will be used as a POC to transfer highly sensitive data.
With the language of your choice follow these instructions in the next 72 hours to stop the leak:
- Clone this project, change its name and restructure it as you see fit, create your own GitHub repo with the code
- Write an application that will extract the user list from
https://jsonplaceholder.typicode.com/usersin our account, we only want their name and email address - Create a docker container that will publish
usersobject tohttp://127.0.0.1:5000/users - Create a Github Actions configuration that will build, test and deploy your code and container/s
- The Github Actions workflow process should
publishthe contianer to your own docker hub account - A link to the container on docker hub should be published as
containerto/health(See requirement #2) - A link to the GitHub project should be published as
projectto/health(See requirement #2) - Once completed, reply to the challenge email:
Subject: DevOps Challenge complete
Content: Name: <YOUR_NAME>
Project: <LINK TO GITHUB PROJECT>
Attached: `.env` (if you used one)
To wrap up the project, prepare a
environment.templatefile, that would contain a CloudFormation YAML. The template should create an environment ready to deploy your application to AWS. You may choose any AWS service you see fit for the deployment. When using the template in CloudFormation, the user should be able to fill in parameters required (e.gvpc-id,instance-typeetc).
- Return
{ users: [{name: "USER NAME", email: "USER EMAIL"}, {name: "USER NAME", email: "USER EMAIL"}, etc...] }to http://127.0.0.1:5000/users - Return
{ status: healthy, container: <LINK_TO_HUB>, project: github.com/onebeatco/ecscale }to http://127.0.0.1:5000/health - Running
docker-compose upshould get everything up and running - Contain a minimal test suit
- Be tested and built in Github Actions on push to
masterbranch - Contain a well documented code, and a
SUMMARY.mdfile explaining each step of the development process - Contain a
TROUBLE.mddescribing difficulties along the way and their solutions - Contain a
INSTRCUTIONS.mdexplaining a cloning user how to use the repo - running, testing etc. - Be published as a GitHub project under your account e.g
github.com/<GitHub_User>/<Challange_Project> verification.shshould run instantly, if you used a.envfile, share it privately in the returning email
- Use informative commit messages
- Think security: Avoid exposing secrets in any way (Tip: use
.envfile for thecomposeing, and.gitignoreit. Be sure to provide the file upon completing the task. - Optional - use different routers in Ruby, Python, Go and Node
- Structure the project in a maintainable logic way, you may use
/example - Use the
example/screenshots/for a general idea of the outcome