Coder Social home page Coder Social logo

nouchka / docker-hackmyresume Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 4.0 29 KB

Docker image to build personal website with resume

Home Page: https://hub.docker.com/r/nouchka/hackmyresume/

Shell 45.15% Dockerfile 37.11% Makefile 17.73%
docker docker-image hackmyresume jsonresume

docker-hackmyresume's Introduction

docker-hackmyresume

Docker pull Docker stars Build Status Docker size

Docker image to build personal website with resume (Ex. https://japromis.katagena.com/)

Versions

Version follows npm package version

  • 1.0 (latest) (npm package version >=1.3.0 <2)

Image

This image generates html / pdf file using npm package hackmyresume. HackMyResume use standard format https://jsonresume.org/schema/ to generate the files.

docker-hackmyresume-web extends this image with a webserver (nginx) for an all-in-one solution.

The entrypoint of the image:

  • check if json file is missing, generates one
  • update personal datas missing in json (###PHONE###, ###EMAIL### and ###ADDRESS###)
  • validate json file
  • install missing template
  • generate output resume

Use

Use from command line, put your resume.json in /tmp/resume/ and file will be generate in same directory:

docker run -e 'OUTPUT_TEMPLATE=kendall' \
	-e 'PHONE=+33602030405' \
	-e '[email protected]' \
	-e 'ADDRESS=25 Rue Delphin Loche' \
	-e 'DISPLAY=unix$DISPLAY' \
	-v /tmp/resume/:/usr/share/nginx/html/ \
	-v /tmp/.X11-unix:/tmp/.X11-unix \
	nouchka/hackmyresume

or use with docker compose:

docker-compose up -d

Environment variables:

# specify basic template or https://jsonresume.org/themes/ template (ex. kendall in docker-compose.yml, default: modern)
OUTPUT_TEMPLATE=kendall
# will replace ###PHONE### by this value
PHONE=+33602030405
# will replace ###EMAIL### by this value
[email protected]
# will replace ###ADDRESS### by this value
ADDRESS=25 Rue Delphin Loche
# used with /tmp/.X11-unix to allow wkhtmltopdf to generate PDF. Can be remove if only html files needed.
DISPLAY=unix$DISPLAY
# specify a different json file
RESUME_FILE=resume.json

Todo

  • Migrate docker-compose file format to version 2
  • Add parameters to define path to resume.json file

Donate

Bitcoin Address: 15NVMBpZJTvkefwfsMAFA3YhyiJ5D2zd3R

docker-hackmyresume's People

Contributors

nouchka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.