Git Product home page Git Product logo

responsitccl's Introduction

Pelican Static Page

Folder pelican-data berisi website statis menggunakan web generator (Pelican)

Dockerfile

Berisi perintah-perintah untuk membuat image docker, menggunakan image (alpine3.4)

FROM alpine:3.4

RUN apk -U add \
    python \
    python3 \
    perl \
    make \
    && apk -U add --virtual deps \
    py-pip \
    && pip install pelican markdown \
    && apk del deps \
    && rm -rf /var/cache/apk/*

COPY start.sh start.sh
RUN chmod +x start.sh
EXPOSE 4000

CMD ["/bin/sh", "start.sh"]

Docker Compose

Docker Compose ini digunakan untuk membuat container dari docker image

version: '2'
services:
  pelican:
    image: pelicanmaster
    ports:
      - 4000:4000
    volumes:
      - ~/docker-pelican-master/pelican-data:/opt/data

Jalankan docker-compose

beme@be:~/docker-pelican-master$ sudo docker-compose up
Starting dockerpelicanmaster_pelican_1
Attaching to dockerpelicanmaster_pelican_1
pelican_1  | make: *** No rule to make target 'clean'.  Stop.
pelican_1  | make: *** No rule to make target 'html'.  Stop.
pelican_1  | 172.18.0.1 - - [25/Jul/2017 16:44:09] "GET / HTTP/1.1" 200 -
pelican_1  | 172.18.0.1 - - [25/Jul/2017 16:44:09] "GET /theme/css/main.css HTTP/1.1" 200 -
pelican_1  | 172.18.0.1 - - [25/Jul/2017 16:44:09] "GET /theme/css/reset.css HTTP/1.1" 200 -
pelican_1  | 172.18.0.1 - - [25/Jul/2017 16:44:09] "GET /theme/css/pygment.css HTTP/1.1" 200 -
pelican_1  | 172.18.0.1 - - [25/Jul/2017 16:44:09] "GET /theme/css/typogrify.css HTTP/1.1" 200 -

Lalu akses http://localhost:4000/ untuk melihat hasil web seperti gambar di bawah : localhost

Prestasi

  1. Github Contribution: https://github.com/part-up/part-up/pulls?q=is%3Apr+is%3Aclosed+author%3AFreddyAprilliant

responsitccl's People

Contributors

freddyaprilliant avatar

Watchers

 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.