linux go环境

#go1.17版本 wget https://dl.google.com/go/go1.17.linux-amd64.tar.gz tar -C /usr/local -xzf go1.17.linux-amd64.tar.gz vi /etc/profile #加入 export GOROOT=/usr/local/go export PATH=$PATH:$GOROOT/bin source

- 阅读全文 -

odoo14 源码部署Dockerfile

我采用的挂载的方式加载代码,并没有将代码打包到docker里面DockerfileFROM debian:buster-slim MAINTAINER Lnace <lin20080369126.com> SHELL ["/bin/bash", "-xo", "pipefail", "-c"] ENV

- 阅读全文 -

gitlab ci/cd 部署

我的runner executor是采用docker的方式.gitlab-ci.yml#定义部署的流程 stages: - build - test - deploy #定义docker的镜像 image: docker:latest #定义共用的build脚本 .build-script: script: - docker login -u $DOCKER_REGI

- 阅读全文 -

多个docker-compose互通

docker-compose1version: '2' services: web: image: laravel restart: always networks: - app_net ports: - "80:8080" networks: app_net: external: true docker

- 阅读全文 -

postgressql 常用语法

创建数据库,注意创建之前要切换到对应的用户,这会影响到ownedCREATE DATABASE "test-db"; 修改ownedREASSIGN OWNED BY oldowed TO newowned; 删除数据库DROP DATABASE "test-db"; 清理所有连接SELECT pg_terminate_backend(pg_stat_

- 阅读全文 -