Alain,
I did go ahead and compiled everything from scratch for UBUNTU on my VPS. Instructions below for both OS X and LINUX: Seems to be working now with my Trial of AWS, although I probably need to understand the "MigrationFromFileSystemEnabled" option a bit better. Also need to check out the performance. I'm really looking to use that as a backup and not as real-time access since it'll less expensive that way if we use Glacier storage and do not make repeated requests.
BTW, just wondering if there are S3 services that provide similar service for a lesser price than Amazon ?
Also, I am running Orthanc on a VPS with a hosting service and I have the AWS trial S3 bucket. Not sure if that is how it is suppose to be used, but I'm just experimenting around a bit now.
I'm actually looking for a way to just store in the cloud for long-term backup and disaster recovery while have most studies still on our local server until we get somewhat over capacity, so wondering if I can leverage the MigrationFromFileSystemEnabled somehow for that or if I'd have to have a local server running also and use a Lua script or something store studies there also.
"Orthanc will store all new files into the object storage but will try to read/delete files
from both the file system and the object storage." I'd be interested in storing in both places. Perhaps there would also be a way just not use the S3 plugin but still use S3 storage as a backup using the AWS SDK ?
I have an inquiry with AWS about why it was not working with the OS X plug-in. It is strange because the files with the uuid's were created in the S3 bucket, but the file size was 0B and they were empty. My home system is in an apartment building with layers of routers, so wonder if it might have something to do with that and there is nothing wrong with the plug-in. Using OS X is a matter of convenience mostly when it comes to development.
Compilations Instructions for AWS SDK and for Osimis AWS S3 Plugin, OS X and LINUX
___________________________________________________________
Change to some directory, I used orthanc sources because that is where all of my sources are:
The directions will be different for LINUX. See the orthanc-object-storage/README.md
1. COMPILE THE AWS SDK (see
https://github.com/Microsoft/vcpkg)
cd orthanc_sources
git clone
https://github.com/aws/aws-sdk-cpp.git (put the SDK in aws-sdk-cpp).
cd aws-sdk-cpp
mkdir -p builds/aws-sdk-cpp (p creates if not exists)
cd builds/aws-sdk-cpp
cmake -DBUILD_ONLY="s3;transfer" ../../
make -j 4
make install
(You might need to install some dependencies on both OS X and UBUNTU). e.g.
sudo apt update && sudo apt upgrade && sudo apt install curl && sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libssl-dev
)
2. Install:
https://github.com/Microsoft/vcpkg(Need brew install gcc && brew install jsoncpp package on OS X)
Change back to 'orthanc_sources' and:
git clone
https://github.com/microsoft/vcpkg (into the orthanc sources dir)
./vcpkg/bootstrap-vcpkg.sh (should build after brew install gcc on OS X)
cd vcpkg
./vcpkg install cryptopp
3. Get the sources for the plug-in (cd back to orthanc_sources)
hg clone
https://hg.orthanc-server.com/orthanc-object-storagecd orthanc-object-storage
mkdir -p build/aws
cd build/aws
(It originally threw an error with -JSONPP, so that probably need with -DSTATIC_BUILD=ON)
(OSX)
cmake -DSTATIC_BUILD=ON -JSONCPP_INCLUDE_DIR=/usr/local/Cellar/jsoncpp/1.9.4_1/include/ -DUSE_SYSTEM_GOOGLE_TEST=OFF -DCMAKE_TOOLCHAIN_FILE=../../../vcpkg/scripts/buildsystems/vcpkg.cmake ../../Aws
make -j 4
(LINUX)
cmake -DSTATIC_BUILD=ON -DUSE_SYSTEM_GOOGLE_TEST=OFF -DCMAKE_TOOLCHAIN_FILE=../../../vcpkg/scripts/buildsystems/vcpkg.cmake ../../Aws
make -j 4|
| ___________________________________________________________ |
|
|
|