Docker image to convert twiki documents to markdown.
1.1K
sudo or membership in the docker groupIf 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
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:
SoftwareTeam web docsRelease3 web docsThe 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.
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.
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>
Content type
Image
Digest
Size
914 MB
Last updated
almost 9 years ago
docker pull opensciencegrid/docker-twiki-converter