Simple Backup of Omeka S Using gdrive

Overview This is a memo on how to perform simple backups of Omeka S using gdrive. As an example, we target Omeka S installed on a LAMP environment launched on Amazon Lightsail. Please refer to the following for installation instructions. Installing gdrive This time, we will back up files to Google Drive. For this purpose, we use gdrive. Please install gdrive by referring to the following article. Prepare a Backup Script In the $HOME directory, create a file such as backup.sh. An example of the file contents is as follows. ...

May 12, 2022 · 5 min · Nakamura

Using gdrive in a LAMP environment started with Amazon Lightsail

Overview Memorandum for using gdrive in a LAMP environment started with Amazon Lightsail, allowing backup of files to Google Drive, etc. Procedure First, access Amazon Lightsail and press the following “Connect using SSH” button on the target instance. You can access the server as follows. L T T T T D L b i h h h h e a i n e e e e b s t u i t n x p p p p a a r r r r n l m i o o o o W D h B o i p g g g g G e o t i g @ - r r r r N l c t t i i 1 a a a a U c u p n n p 7 m m m m / o m s a : - 2 s s s s L m e : m 1 - i e n / i T 7 2 i i i i n t / h 2 6 n n n n u t a d F u - - c c c c x o t o o 2 5 l l l l \ i c r M 6 - u u u u c } t o s u a - 2 d d d d o / h n . m y 5 0 e e e e m e : b s - 2 d d d d e i : 1 2 s L h t 2 0 4 w w w w A t n h 2 . i i i i w _ M t a t 0 : 1 t t t t i , P p m t 3 ~ 9 h h h h t \ _ s i p : $ . h } | p : . s 2 0 t t t t / _ a c : 5 - h h h h A | c / o / : 1 e e e e B _ _ k d m 1 9 S ` | a o c 3 - D D D D O _ g c a o c e e e e L e s w m 2 l b b b b U d . s m 0 o i i i i T b / u 2 u a a a a E b i n 2 d n n n n L \ y t i - Y } n t f a G G G G B a y r m N N N N N i m . o d U U U U O t i b m 6 / / / / n . i 4 L L L L W a c t 7 i i i i A m o n 2 # n n n n R i m a . 1 u u u u R / m 2 x x x x A 7 a i 1 S N . w . . M s s s s T 4 s c 2 P y y y y Y . / o 1 s s s s , 2 i m 7 D t t t t 8 n / . e e e e e t - f 1 b m m m m o 1 r 8 i 4 a 6 a a a a a t s n r r r r h t e e e e e r 4 u . f f f f e c 1 r r r r x t 9 e e e e t u . e e e e e r 2 n e 3 s s s s t / 2 o o o o l - f f f f p a 1 t t t t e m w w w w r p ( a a a a m / 2 r r r r i 0 e e e e t 2 ; ; ; ; t 2 e - t t t d 0 h h h 3 e e e b - y 0 e e e 7 x x x a ) a a a p c c c p x t t t l 8 i 6 d d d c _ i i i a 6 s s s b 4 t t t l r r r e i i i b b b l u u u a t t t w i i i . o o o n n n t t t e e e r r r m m m s s s f f f o o o r r r e e e a a a c c c h h h p p p r r r o o o g g g r r r a a a m m m a a a r r r e e e d d d e e e s s s c c c r r r i i i b b b e e e d d d i i i n n n t t t h h h e e e / i u n s d r i / v s i h d a u r a e l / d f o i c l / e * s / c i o n p y / r u i s g r h / t s . h a r e / d o c / * / c o p y r i g h t . Install golang Install golang as follows. ...

May 12, 2022 · 7 min · Nakamura

Using gdrive in a LAMP Environment on Amazon Lightsail

Overview This is a memo for using gdrive in a LAMP environment launched on Amazon Lightsail. This enables file backups to Google Drive, among other things. Steps First, access Amazon Lightsail and press the “Connect using SSH” button on the target instance. You can access the server as shown below. L T t i D p L b i h h n e e a i n e e d b r s t u i i m t n x p e v a i a r x i n t l m i o a d t W D B o i p g c u G e e o i g @ - r t a N d l c t i i 1 a l U c u n n p 7 m d / b o m a : - 2 s i f L y m e m 1 - s i i e n i T 7 2 i t l n a t h 2 6 n r e u p t a F u - - c i s x p o t o 2 5 l b l i r M 6 - u u i c i t o u a - 2 d t n o c h n m y 5 0 e i m a e : s - 2 d o / e b : 1 2 n u s l L 2 0 4 w s e A h h h 2 . i t r w _ _ M t t t 0 : 1 t e / i l ` , P t t t 3 ~ 9 h r s t a _ p p p : $ . m h h w p s s s 2 0 t s a . a : : : 5 - h r A c / : 1 e f e B k / 1 9 o / S a d d c 3 - D r d O g o o o c e o L e c c m 2 l b e c U d s s m 0 o i a / T . . u 2 u a c * E b b b n 2 d n h / L y i i i - c Y t t t f a G p o B n n y r m N r p N i a a . o d U y O t m m b m 6 g r n i i i 4 L r i W a . . t 7 i a g A m c c n 2 # n m h R i o o a . 1 u t R m m m 2 x a . A 7 / i 1 S r N . a a . . M s e T 4 w w c 2 P y Y . s s 1 s d , 2 / m 7 D t e 8 i / . e e s t - n 1 b m c o 1 f 8 i r 4 r 6 a a i t a n r b h s e e e t 4 d r . f e u 1 r i x c 9 e n t t . e e u 2 t n r 3 s h t e 2 o e / - f l 1 t a w m ( a p 2 r / 0 e 2 ; 2 - 0 3 - 0 7 ) x 8 6 _ 6 4 Installing golang Install golang as follows. ...

May 12, 2022 · 6 min · Nakamura

Building an Omeka S Site Using Amazon Lightsail (Including Custom Domain + SSL)

Update History 2022/09/08 Updated the script descriptions to the latest version. Overview Amazon Lightsail is described as follows. Amazon Lightsail is an easy-to-use virtual private server (VPS) that offers everything needed to build an application or website, with a cost-effective, monthly plan for managing cloud resources such as containers at predictable, low prices. This article introduces how to build Omeka S using Amazon Lightsail. It also covers the “custom domain” and “SSL” settings that are generally required when publishing a database. ...

April 26, 2022 · 15 min · Nakamura

Experiments on Image Sizes Supported by serverless-iiif

Overview In the following article, I explained how to build an IIIF Image Server using an AWS serverless application. This time, I register a relatively large image and verify whether tile image delivery is possible. Target This time, the target is “Mining Claim Maps” (held by the University of Tokyo Komaba Library). https://iiif.dl.itc.u-tokyo.ac.jp/repo/s/ichiko/document/4120a330-2f1c-4e2c-5d48-21aed4d42704 The original image is a TIF file of nearly 300 MB. Creating Pyramidal Tiled TIFF Referencing the following site, I tried both VIPS and ImageMagick. ...

April 14, 2022 · 2 min · Nakamura

[Development Guide] I Created an App to View OCR Results Published by the National Diet Library's Next-Generation Digital Library in an IIIF Viewer

Overview I created an app to view OCR results published by the National Diet Library’s “Next-Generation Digital Library” in an IIIF viewer. The usage instructions are summarized in the following article. This time, I will explain how to build the above app. Build Method Backend I used AWS. The system was primarily built using SAM (Serverless Application Model). Creating IIIF Manifests & Curation Lists The flow for generating IIIF manifests and curation lists reflecting the OCR results published by the Next-Generation Digital Library is as follows. ...

April 4, 2022 · 2 min · Nakamura

Building an Object Detection API Using AWS Lambda (Flask + YOLOv5)

Overview We build an object detection API (Flask + YOLOv5) using AWS Lambda. By building a machine learning inference model using AWS Lambda, we aim to reduce costs. The following article was used as a reference. https://zenn.dev/gokauz/articles/72e543796a6423 Updates to the repository contents and additions of how to use it from API Gateway have been made. Registering Functions on Lambda Clone the following GitHub repository. g i t c l o n e h t t p s : / / g i t h u b . c o m / l d a s j p 8 / y o l o v 5 - l a m b d a . g i t Running Locally Next, create a virtual environment using venv and install the modules. ...

March 24, 2022 · 5 min · Nakamura

How to Use a Flask-Based YOLOv5 Model Repository with ECR and AWS App Runner

This article introduces an example of building an object detection API using AWS App Runner and YOLOv5. Amazon ECR I registered the following repository, which publishes a YOLOv5 model using Flask, to the Amazon ECR (Elastic Container Registry) public registry. https://github.com/robmarkcole/yolov5-flask https://gallery.ecr.aws/b8m8i5m3/yolov5-flask I made some modifications to the source code from the original repository. The forked repository is here: https://github.com/ldasjp8/yolov5-flask Below, I will explain how to use this image with App Runner as an example. ...

March 21, 2022 · 1 min · Nakamura

Health Check on Port Issue When Using AWS App Runner + ECR

When using ECR as the source in AWS App Runner, the following Health check on port “XXXX” error occurred. 0 3 - 2 0 - 2 0 2 2 0 7 : 1 8 : 5 2 A M [ A p p R u n n e r ] H e a l t h c h e c k o n p o r t ' 3 0 0 0 ' f a i l e d . S e r v i c e i s r o l l i n g b a c k . C h e c k y o u r c o n f i g u r e d p o r t n u m b e r . F o r m o r e i n f o r m a t i o n , r e a d t h e a p p l i c a t i o n l o g s . ...

March 20, 2022 · 2 min · Nakamura

Building an IIIF Image Server with AWS Serverless Application

Notice I have documented the usage instructions as of 2024 in the following article. Please refer to it. Overview This article introduces how to build an IIIF Image Server using an AWS serverless application, as featured in Awesome IIIF. https://github.com/samvera-labs/serverless-iiif Please note that following the procedures in this article will incur AWS service charges, so please be cautious if you try it. Target Audience The above repository describes the following prerequisites: ...

March 17, 2022 · 5 min · Nakamura

[For Developers] Setting Up a Search Application Development Environment Using AWS x Nuxt.js x Elasticsearch

本記事では、AWS x Nuxt.js x Elasticsearchを用いた検索アプリケーションの開発環境の構築について、説明します。備忘録の側面が強いです。 以下の構成を目指します。よりよい構成や構築方法があるかと思いますが、とりあえずAWSを用いて、検索エンジンにElasticsearchを使用したNuxt.js製のウェブアプリケーションの開発環境が整います。 Cultural Japanプロジェクトにおいても、上記とほぼ同様の構成を採用しています。 以下の流れで説明します。 準備(任意) AWSでドメインの取得やSSL/TLS化を行う方法です。 Route 53を用いたドメイン取得 独自ドメインの取得が必要な場合、Route 53でドメインの取得が可能です。 AWS Certificate Manager 次に、AWS Certificate Managerを用いて、SSL/TLS化を行います。こちらも手順に進めれば問題ありません。 なお、検証を行う際、以下の「Route 53でレコードを作成」ボタンをクリックして手続きすることで、簡単に進めることができました。 Backend Backendの構築から進めます。 Identity and Access Management (IAM)ユーザの作成 まず、Amazon OpenSearch Serviceにアクセス権限があるユーザを作成します。 作成後に表示される「アクセスキー」と「シークレットアクセスキー」をメモしておきます。 Amazon OpenSearch Service まず、Amazon OpenSearch Serviceを選びます。 その後は、以下のチュートリアルが参考になります。 https://docs.aws.amazon.com/opensearch-service/latest/developerguide/gsg.html 上記のマニュアルからの変更点として、アクセスポリシーは「ドメインレベルのアクセスポリシーの設定」を選択し、先に作成したユーザのARNを許可してください。 (ローカル)Pythonを用いたAmazon OpenSearch Serviceへのデータ登録 次に、上記で発行した「アクセスキー」と「シークレットアクセスキー」などを用いて、Amazon OpenSearch Serviceにデータ登録を行います。 具体的には、以下のGoogle Colabなどを参考にしてください。 https://colab.research.google.com/drive/1-uygvtQwoc3Wn4XSEUWN5Z5Hxq3vT9Gj?usp=sharing AWS SAM(Serverless Application Model) 次に、API GatewayとLambda 関数を作成します。具体的には、以下の記事を参考に、AWS SAM(Serverless Application Model)を利用します。 dev.classmethod.jp ...

March 12, 2022 · 3 min · Nakamura