Skip to content

Commit

Permalink
Step one done.
Browse files Browse the repository at this point in the history
  • Loading branch information
thospfuller committed Apr 7, 2020
1 parent dfbb7f0 commit 7dda053
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions DOCKER_EXAMPLE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
If you're looking to load COBOL data files into the R Project for Statistical Computing then you came to the right place.

In this video we will demonstrate the open-source R COBOL Data Integration package running in Docker.

The Dockerfile in this example is based on Rocker / RStudio and will be running locally on port 8787.

Step 1.) Build the image (this can take up to 20 minutes).

docker build -t rcoboldi/rocker-rstudio:1.0.1 https://raw.githubusercontent.com/thospfuller/rcoboldi/master/docker/rocker/rstudio/Dockerfile

[some image id]

![Build the Docker image from the R COBOL Data Integration package Dockerfile."](https://github.com/thospfuller/rcoboldi/tree/master/images/RCOBOLDI_StepOneBuildDockerImage.png "Build the Docker image from the R COBOL Data Integration package Dockerfile.")

Step 2.) Launch a container based on this image.

docker run -d -p 8787:8787 -e PASSWORD=password --name rstudio -i -t [some image id]

[some container id]

Step 3.) Browse to http://localhost:8787 and enter the username & password combination rstudio & password.

The next three steps appear in the video.

Step 4.) library(RCOBOLDI)

Step 5.) RCOBOLDI::Initialize()

Step 6.) result <- RCOBOLDI::ReadCopyBookAsDataFrame("DTAR020.cbl", "DTAR020.bin", "Fixed Length Binary", "cp037")

Step 7.) head(result)
Binary file added images/RCOBOLDI_StepOneBuildDockerImage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7dda053

Please sign in to comment.