0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【FolioLSP】チュートリアルのDockerの中を調べる

Last updated at Posted at 2020-07-31

この記事では、Library Service PlatformのOpen Sourceプロジェクトである、Folioのチュートリアルの理解を助ける内容を記載します。

準備

チュートリアル②VM概要 のdocker psまで実行する。

入るコンテナの名前を調べる

今回はmod-inventoryを見てみたいと思います。

docker ps

をして、IMAGEにmod-inventoryが含まれる行の一番右のNAMEをコピーしてください。
今回は、zealous_pikeという名前のコンテナを見てみます。

余談「Dockerで --name 指定しないでコンテナ実行するとヘンテコなデフォルト名がつく」
https://qiita.com/xsgk/items/9cec82fbbab0fff593c1

コンテナに入る

vagrant@vagrant:~$ docker exec -it zealous_pike sh
~ $ pwd
/usr/verticles
~ $ ls -la
total 54100
drwxr-xr-x    1 folio    folio         4096 Jul 31 01:43 .
drwxr-xr-x    1 root     root          4096 Nov 25  2019 ..
-rw-------    1 folio    folio           11 Jul 31 01:44 .ash_history
drwxr-xr-x    4 folio    folio         4096 Jul 31 01:36 .vertx
-rwxr-xr-x    1 folio    folio          465 Nov  9  2018 debug-options
-rwxr-xr-x    1 folio    folio         2860 Nov  9  2018 java-default-options
-rw-rw-r--    1 root     root      55365424 Jun 26 13:58 mod-inventory.jar
-rwxr-xr-x    1 folio    folio         6398 Nov 13  2019 run-java.sh

抜ける時はexit

jarfileの中身はこんなかんじ。
https://github.com/folio-org/mod-inventory

1.0                       Log4j-events.xsd          apidocs                   draftv3                   japa                      log4j.properties          org                       simple-api.raml           vertx-version.txt
ASL-2.0.txt               Log4j-levels.xsd          builddef.lst              draftv4                   javassist                 log4j2.properties         overrides                 templates                 vertx-web
LGPL-3.0.txt              META-INF                  cluster.xml               edu                       javax                     log4j2.xml                ramls                     vertx-auth-common         vertx-web-directory.html
LICENSE                   MessagingDescriptor.json  codegen.json              freemarker                joptsimple                module-info.class         rootdoc.txt               vertx-auth-common-js      vertx-web-error.html
LICENSE.txt               OSGI-INF                  com                       git.properties            library.properties        mozilla                   ru                        vertx-bridge-common       vertx-web-js
Log4j-config.xsd          PlaceHolder.class         config                    infra-messages            license                   net                       scala                     vertx-bridge-common-js
Log4j-events.dtd          XPP3_1.1.4c_VERSION       de                        io                        licenses                  okio                      serviceproxy              vertx-core

https://github.com/folio-org/mod-inventory/tree/master/src/main/java/org/folio
に対応↓

~/jarfile/org/folio/inventory $ ls
InventoryVerticle.class  config                   parsing                  support
Launcher.class           dataimport               resources                validation
Logging.class            domain                   services
common                   exceptions               storage

https://github.com/folio-org/okapi/tree/master/okapi-common/src/main/java/org/folio/okapi/common
に対応↓

~/jarfile/org/folio/okapi/common $ ls
CQLUtil$1.class                 ErrorType.class                 MainLauncher.class              ModuleVersionReporter.class     SemVer.class
CQLUtil.class                   ExtendedAsyncResult.class       Messages$SingletonHelper.class  OkapiClient.class               Success.class
Config.class                    Failure.class                   Messages.class                  OkapiLogger.class               URLDecoder.class
ErrorType$1.class               HttpResponse.class              ModuleId.class                  OkapiToken.class                XOkapiHeaders.class
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?