搭建 dicom 开发环境

  • 搭建 dcm4chee-arc-light (可选)
    • 准备vagrant
    • 准备docker
    • dcm4che/dcm4chee-arc-light
  • dicom 开发环境
    • 编译 dcm4che/dcm4che
    • weasis-dicom-tools

参考github

搭建 dcm4chee-arc-light (可选)

dcm4chee-arc-light : Dcm4che归档服务, DICOM Archive Java EE application running in WildFly.

准备vagrant

sudo apt update
sudo apt install virtualbox
curl -O https://releases.hashicorp.com/vagrant/2.2.10/vagrant_2.2.10_x86_64.deb
sudo apt install ./vagrant_2.2.10_x86_64.deb
vagrant --version# vagrant box add centos/8 CentOS-8-Vagrant-8.3.2011-20201204.2.x86_64.vagrant-virtualbox.box
vagrant box list
vagrant init centos/8
gedit Vagrantfile

Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :Vagrant.configure("2") do |config|config.vm.box = "centos/8"config.vm.provision "shell", inline: <<-SHELLsudo dnf update -ysudo dnf install vim -ysudo dnf install langpacks-en glibc-all-langpacks -ySHELLconfig.vm.define :CentOS8 do |node_conf|node_conf.vm.hostname = "lei" # 指定vm的hostname,会覆盖vm中/etc/hostsname中的设置node_conf.vm.network :private_network, ip: "192.168.33.11"config.vm.provider :virtualbox do |vb| # vm提供者配置# 通用配置vb.name = "CentOS8" # #指定vm-name,也就是virtualbox管理控制台中的虚机名称vb.gui = false # vagrant up启动时,是否自动打开virtual box的窗口,缺省为false            vb.memory = "2048" # 指定vm内存,单位为MBvb.cpus = 2 # 设置CPU个数endend
end

准备docker

vagrant up
vagrant ssh
mkdir dcm && cd dcm/
sudo dnf install dnf-utils device-mapper-persistent-data lvm2 fuse-overlayfs wget -ywget https://mirrors.aliyun.com/docker-ce/linux/centos/8/x86_64/stable/Packages/containerd.io-1.4.4-3.1.el8.x86_64.rpm
sudo dnf localinstall ./containerd.io-1.4.4-3.1.el8.x86_64.rpm# 添加阿里镜像源
sudo yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
sudo dnf install docker-ce docker-ce-cli -y
sudo systemctl start docker
sudo systemctl enable docker
docker version
# 阿里镜像加速 https://cr.console.aliyun.com/#/accelerator
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{"registry-mirrors": ["https://mwwg80su.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart dockerwget https://github.com/docker/compose/releases/download/1.28.6/docker-compose-`uname -s`-`uname -m`
sudo mv ./docker-compose-Linux-x86_64 /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-composecat /etc/group | grep docker
sudo gpasswd -a $USER docker     #将登陆用户加入到docker用户组中
newgrp docker     #更新用户组

dcm4che/dcm4chee-arc-light

vim docker-compose.yml
vim docker-compose.envdocker-compose -p dcm4chee up -d# 验证 http://ip:8080/dcm4chee-arc/ui2

docker-compose.yml

version: "3"
services:ldap:image: dcm4che/slapd-dcm4chee:2.4.57-23.2logging:driver: json-fileoptions:max-size: "10m"ports:- "389:389"env_file: docker-compose.envvolumes:- /var/local/dcm4chee-arc/ldap:/var/lib/openldap/openldap-data- /var/local/dcm4chee-arc/slapd.d:/etc/openldap/slapd.ddb:image: dcm4che/postgres-dcm4chee:13.1-23logging:driver: json-fileoptions:max-size: "10m"ports:- "5432:5432"env_file: docker-compose.envvolumes:- /etc/localtime:/etc/localtime:ro- /etc/timezone:/etc/timezone:ro- /var/local/dcm4chee-arc/db:/var/lib/postgresql/dataarc:image: dcm4che/dcm4chee-arc-psql:5.23.2logging:driver: json-fileoptions:max-size: "10m"ports:- "8080:8080"- "8443:8443"- "9990:9990"- "9993:9993"- "11112:11112"- "2762:2762"- "2575:2575"- "12575:12575"env_file: docker-compose.envenvironment:WILDFLY_CHOWN: /opt/wildfly/standalone /storageWILDFLY_WAIT_FOR: ldap:389 db:5432depends_on:- ldap- dbvolumes:- /etc/localtime:/etc/localtime:ro- /etc/timezone:/etc/timezone:ro- /var/local/dcm4chee-arc/wildfly:/opt/wildfly/standalone- /var/local/dcm4chee-arc/storage:/storage

docker-compose.env

STORAGE_DIR=/storage/fs1
POSTGRES_DB=pacsdb
POSTGRES_USER=pacs
POSTGRES_PASSWORD=pacs

dicom 开发环境

编译 dcm4che/dcm4che

# 使用 gitee 加速 git clone https://github.com/dcm4che/dcm4che.git
git clone https://gitee.com/mirrors/dcm4che.git
cd dcm4che# 替换pom.xml中远程仓库url
'''
<repository><id>nroduit-mvn-repo-master</id><!--<url>https://raw.github.com/nroduit/mvn-repo/master/</url>--><url>https://github.com/nroduit/mvn-repo/tree/master/</url>
</repository>
'''
mvn clean install -Dmaven.test.skip=true# 如果jar无法下载或下载不完整
# 则使用gitee加速 https://github.com/nroduit/mvn-repo ==>  https://gitee.com/yingli_wuli/mvn-repo  可下载 org.weasis.core:weasis-core-img:jar 等jar包# 手动安装 org.dcm4che:dcm4che-imageio-opencv:jar:5.23.2
mvn install:install-file -Dfile=./dcm4che-imageio-opencv-5.23.2.jar -DgroupId=org.dcm4che -DartifactId=dcm4che-imageio-opencv -Dversion=5.23.2 -Dpackaging=jar
# 手动安装 org.weasis.core:weasis-core-img:jar:4.5.1
mvn install:install-file -Dfile=./weasis-core-img-4.5.1.jar -DgroupId=org.weasis.core -DartifactId=weasis-core-img -Dversion=4.5.1 -Dpackaging=jarmvn clean install -Dmaven.test.skip=true

weasis-dicom-tools

基于 dcm4che 封装的 API
This project provides a DICOM API for C-Echo , C-Move , C-Get , C-Find and C-Store based on dcm4che3
Getting started: see the test classes
to tee dicomserver

编译安装

# 这里的版本和dcm4che一致,我这里都是 5.23.2 的
# https://github.com/nroduit/weasis-dicom-tools/
git clone https://github.com/nroduit/weasis-dicom-tools.git
cd weasis-dicom-tools
mvn clean install

搭建 dicom 开发环境相关推荐

  1. emacs 搭建racket开发环境

    emacs 搭建racket开发环境 emacs下搭建开发racket的环境,笔者之前用过下面两种模式:geiser和racket-mode.相对而言,后一种方式要显得简单.本文主要介绍后一种方式环境 ...

  2. 在CentOS 6.2上搭建vim开发环境

    在CentOS 6.2上搭建vim开发环境 最后更新日期:2013-07-05 1.首先使用Ubuntu(所在ip为192.168.16.230)翻墙登陆http://www.vim.org/,下载其 ...

  3. Windows7/10上快速搭建Tesseract-OCR开发环境操作步骤

    之前在https://blog.csdn.net/fengbingchun/article/details/51628957 中描述过如何在Windows上搭建Tesseract-OCR开发环境,那时 ...

  4. 7 centos 源码安装samba_CentOS搭建WonderTrader开发环境及v0.5.4版本发布

    前言 之前发过一篇关于如何搭建WonderTrader开发环境的文章<从零搭建WonderTrader的开发环境>,帮助不少用户解决了一些编译源码的问题.因为笔者是在Ubuntu 18.0 ...

  5. Windows下搭建PHP开发环境

    PHP集成开发环境有很多,如XAMPP.AppServ......只要一键安装就把PHP环境给搭建好了.但这种安装方式不够灵活,软件的自由组合不方便,同时也不利于学习.所以我还是喜欢手工搭建PHP开发 ...

  6. python ai应用开发_AI应用开发实战 - 从零开始搭建macOS开发环境

    AI应用开发实战 - 从零开始搭建macOS开发环境 联系我们 OpenmindChina@microsoft.com 零.前提条件 一台能联网的电脑,使用macOS操作系统 请确保鼠标.键盘.显示器 ...

  7. mac搭建python开发环境_Mac中基于Homebrew搭建python开发环境

    转移到mac上了.这里是在lion中搭建python开发环境的简单记录.这份记录不是一份step by step.而是事后写的记录,可能有记忆遗漏.如果有错误,请指正. 1.安装homebrew的准备 ...

  8. Windows 10 搭建Python开发环境(PyCharm )

    Windows 10 搭建Python开发环境(PyCharm ) 一.安装Python3 二.安装Pycharm 怎么使用PyCharm编写Python程序,简单教程. windows下安装pyth ...

  9. Eclipse下搭建GitHub开发环境

    自从GitHub的强大性被开发者认识到后,越来越多的开发者选择使用GitHub代替SVN来进行开发.本人也不例外,最近开始研究如何使用GitHub来托管自己的代码,下面就开始介绍如何在Eclipse下 ...

最新文章

  1. websockets_如何将WebSockets与AWS API Gateway和Lambda一起使用来构建实时应用程序
  2. 5%精度的电阻值间的倍率,倍数
  3. python版本越高越好吗-Python 3.8 已发布,现在是切换至新版本的好时机吗?
  4. 【练习】归并和冒泡两种方法c++将两个无序链表合并为一个升序的有序链表
  5. WebKit 内核源码分析 (一) Frame
  6. 关于WebSocket分布式实现的一种方案
  7. Python-OpenCV设置摄像头分辨率
  8. 移动端小程序 腾讯地图sdk 当前位置 地址你解析 距离计算
  9. php快速排序实现代码,快速排序的算法php实现
  10. nohup命令让Linux程序永远在后台执行
  11. 冷热水龙头_冷热水龙头结构图是怎么样的
  12. RAID原理分析总结-运维工作记录
  13. 158.用 Read4 读取 N 个字符read characters from file multiple calls
  14. POJ2940 HDU1489 UVA11054 Wine Trading in Gergovia【Ad Hoc】
  15. python项目运行的软硬件环境_开发时的软硬件环境和运行时的软硬件环境分别是什么...
  16. Gradle入门教程学习笔记
  17. 数据库服务器虚拟内存设置
  18. html实体注册商标,html 注册商标,html 注册商标代码
  19. 2019 ICPC 南京区域赛 - H Prince and Princess(博弈+思维)
  20. 利用python批量查询企业信息_用Python批量查询域名(并行化,附源代码)

热门文章

  1. 智能手机排排坐,十大操作系统下的旗舰手机
  2. Instrusive 【HDU - 5040】【2014 北京 BFS】
  3. 基于AIGC的京东购物助手的技术方案设想 | 京东云技术团队
  4. WCDMA注网过程详解
  5. 基于51单片机直流电压电流表设计LCD1602液晶仿真资料DIY电子制作
  6. 全新运营版周易运势测算网站源码 H5在线起名网站源码
  7. plantuml 依赖_plantuml语法
  8. FreeType使用
  9. 2023年铜川宜宾半程马拉松赛-人生首次半马比赛
  10. win7系统打开截图工具显示“截图工具当前未在计算机上运行”