Sign inSign up

opensciencegrid/docker-twiki-converter

By opensciencegrid

•Updated almost 9 years ago

Docker image to convert twiki documents to markdown.

Image
0

1.1K

opensciencegrid/docker-twiki-converter repository overview

⁠OSG TWiki Converter

⁠Requirements

  • A host with a running docker service
  • sudo or membership in the docker group

⁠Building the image

If you have access to osghost, skip this step. To build this image for another docker host:

$ git clone https://github.com/brianhlin/docker-twiki-converter
$ docker build -t twiki:latest docker-twiki-converter

⁠Start up the mkdocs server

Run the following command on a host with a running docker service (this requires sudo or membership in the docker group):

$ docker run -d -v <PATH TO LOCAL GIT REPO>:/source -p 8000 twiki

Where <PATH TO LOCAL GIT REPO> is your local copy of:

The above command should return the container ID, which can be used to find the port that the mkdocs server is listening to on the docker host:

$ docker port <CONTAINER ID>

For example:

$ docker port c87a9760e526
8000/tcp -> 0.0.0.0:32774

Meaning that the mkdocs server should be accessible on port 32774 of the docker host.

⁠Convert documents

  1. Create a link map file in the root of your local git repository with the following format:

     <TWIKI URL> <PATH TO MARKDOWN FILE>
    

    Where <TWIKI URL> is the link to the TWiki document that you want to convert, e.g. https://twiki.opensciencegrid.org/bin/view/SoftwareTeam/SoftwareDevelopmentProcess⁠, and <PATH TO MARKDOWN FILE> is the path to the converted markdown file, relative to the docs directory.

  2. Run the conversion script available in your docker container using the link map file created above:

     $ docker exec <CONTAINER ID> convert-twiki-list <LINK MAP FILE>
    

Tag summary

Content type

Image

Digest

Size

914 MB

Last updated

almost 9 years ago

docker pull opensciencegrid/docker-twiki-converter