Skip to content

foxfoxio/claat-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

foxfoxio/claat docker image

A docker image for claat Codelabs command line tool, see for usage

pull

docker pull foxfoxio/claat:latest

run

help command

view all available options

docker run --rm foxfoxio/claat -h

export command

export codelab document from one or more source files, see FORMAT-GUIDE.md

  • markdown format: create a codelab file in markdown format and run this command

    docker run --rm -v $(pwd):/app foxfoxio/claat export codelab-file.md
    • note: claat may show the following error if it cannot download the markdown file does not exist, as it tries to download the file as google-doc-id

      ➜ docker run --rm -v $(pwd):/app foxfoxio/claat export codelab-file.md
      err     codelab-file.md unable to obtain access token for "goog"
      Authorize me at following URL, please:
      
      https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=183908478743-e8rth9fbo7juk9eeivgp23asnt791g63.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.readonly&state=unused
      
      Code: %
  • google doc: provide google doc id in the export command

    docker run -it --rm -v $(pwd):/app foxfoxio/claat export 1rpHleSSeY-MJZ8JvncvYA8CFqlnlcrW8-a4uEaqizP
    • authorization may be prompted:

        ➜ docker run -it --rm -v $(pwd):/app foxfoxio/claat export 1rpHleSSeY-MJZ8JvncvYA8CFqlnlcrW8-a4uEaqizP
      Authorize me at following URL, please:
      
      https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=183908478743-e8rth9fbo7juk9eeivgp23asnt791g63.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.readonly&state=unused
      
      Code:

serve command

run claat local server

docker run --rm -v $(pwd):/app -p 9090:9090 foxfoxio/claat serve -addr 0.0.0.0:9090

build

docker build -t foxfoxio/claat:latest .

Releases

No releases published

Packages

No packages published