美文网首页
在容器中运行OmniDB-Server

在容器中运行OmniDB-Server

作者: 枕梦_a280 | 来源:发表于2021-05-19 14:52 被阅读0次

简介: omnidb-server 是一个开源免费的web端数据库客户端工具,支持 Postgresql,mysql,mariadb,oracle,sqlite 等数据库。

GitHub传送门: omnidb
官网传送门: omnidb website
官方文档传送门: omnidb doc
一、下载 OmniDB-Server RPM包

wget https://github.com/OmniDB/OmniDB/releases/download/3.0.3b/omnidb-server-3.0.3b_linux_x86_64.rpm

二、 DockerFile

FROM centos:7
ADD omnidb-server-3.0.3b_linux_x86_64.rpm omnidb-server-3.0.3b_linux_x86_64.rpm
RUN rpm -ivh ./omnidb-server-3.0.3b_linux_x86_64.rpm
EXPOSE 8000
ENTRYPOINT omnidb-server -H 0.0.0.0 -p 8000 -d /opt/omnidb-data
WORKDIR /opt/omnidb-data

三、build镜像

[root@qc omn]# ls
DockerFile  omnidb-server-3.0.3b_linux_x86_64.rpm
[root@qc omn]# docker build -f DockerFile .

四、为镜像打tag

[root@qc omn]# docker tag [CONTAINER_ID] omnidb:v3
[root@qc omn]# docker images
REPOSITORY                   TAG       IMAGE ID       CREATED          SIZE
omnidb                       v3        da0136a75f82   10 minutes ago   333MB

五、 运行容器

[root@qc omn]# docker run --rm -it -p 18000:8000 omnidb:v3 /bin/sh
Copying config file to home directory.
Running database migrations...
Operations to perform:
  Apply all migrations: OmniDB_app, admin, auth, contenttypes, sessions, social_django
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying OmniDB_app.0001_3_0_0... OK
  Applying OmniDB_app.0002_3_0_1... OK
  Applying OmniDB_app.0003_3_1_0... OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying admin.0003_logentry_add_action_flag_choices... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying auth.0009_alter_user_last_name_max_length... OK
  Applying auth.0010_alter_group_name_max_length... OK
  Applying auth.0011_update_proxy_permissions... OK
  Applying auth.0012_alter_user_first_name_max_length... OK
  Applying sessions.0001_initial... OK
  Applying social_django.0001_initial... OK
  Applying social_django.0002_add_related_name... OK
  Applying social_django.0003_alter_email_max_length... OK
  Applying social_django.0004_auto_20160423_0400... OK
  Applying social_django.0005_auto_20160727_2333... OK
  Applying social_django.0006_partial... OK
  Applying social_django.0007_code_timestamp... OK
  Applying social_django.0008_partial_timestamp... OK
  Applying social_django.0009_auto_20191118_0520... OK
  Applying social_django.0010_uid_db_index... OK
Attempting to migrate users, connections and monitoring units and snippets from OmniDB 2 to 3...
Source database file does not contain the required tables, skipping...
Starting OmniDB server...
Checking port availability...
Starting server OmniDB 3.0.3b at 0.0.0.0:8000.
Open OmniDB in your favorite browser
Press Ctrl+C to exit

六、 访问
账户密码默认 admin/admin


image.png

相关文章

  • 在容器中运行OmniDB-Server

    简介: omnidb-server 是一个开源免费的web端数据库客户端工具,支持 Postgresql,mys...

  • 在容器中运行软件

    以下步骤遇到连接超时问题,请参考《更换docker镜像源》将源设置为国内站点。1.以守护进程的形式在docker中...

  • docker守护容器

    以守护形式运行容器 附加到运行中的容器 启动守护式容器: 查看容器日志: 查看容器内进程 在运行中的容器内启动新进...

  • master docker 2基础命令2

    查看容器内部信息 交互式运行容器命令: 让运行中的容器另外运行一个命令的命令: 在运行的nginx容器中运行bas...

  • docker

    容器 查看所有的容器 查看运行中的容器 删除所有的容器 shell 脚本实现 进入运行中的容器 容器的统计信息 +...

  • 在容器中运行Apache Atlas

    Apache Atlas in Docker 在按照apache atlas的文档启动应用时,总是失败,发现其对运...

  • 三、在容器中运行软件

    在上一节中,已经弄懂了docker的相关概念,那么它到底如何用在工作中呢?下面我们就用一个例子来说明docker的...

  • 2018-03-19

    守护式容器 以守护形式运行容器 附加到运行中的容器 nginx

  • Docker使用基础(一)

    在docker容器中运行容器docker run ubuntu /bin/echo "hello world"得到...

  • 三、 容器的管理

    运行第一个容器 查看运行中的容器 手工指定启动容器的名字 运行守护式容器 查询容器的详细信息

网友评论

      本文标题:在容器中运行OmniDB-Server

      本文链接:https://www.haomeiwen.com/subject/vaepjltx.html