Compare commits
1 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
a5adeaa4cd | 2 years ago |
@ -0,0 +1,58 @@
|
|||||||
|
# SQL Express - LocalDB Setup
|
||||||
|
|
||||||
|
- Download free specialized Version [SQL EXpress 2022](https://www.microsoft.com/en-us/sql-server/sql-server-downloads) bootsrapper installer
|
||||||
|
- Launch the bootstrap. Select Custom installation
|
||||||
|
- Under installation, select `New SQL Server standalone installation`
|
||||||
|
- Uncheck `Azure Extension for SQL Server`
|
||||||
|
- Uncheck `Database Engine Services`
|
||||||
|
- Check `LocalDB`
|
||||||
|
|
||||||
|
## Setup a database
|
||||||
|
|
||||||
|
- Under Command prompt
|
||||||
|
|
||||||
|
```sh
|
||||||
|
// Show localdb instances
|
||||||
|
$ sqllocaldb info
|
||||||
|
|
||||||
|
Create a new localdb instance
|
||||||
|
$ sqllocaldb create myLocalDB
|
||||||
|
|
||||||
|
// Check created instance
|
||||||
|
$ sqllocaldb info myLocalDB
|
||||||
|
Name: myLocalDB
|
||||||
|
Version: 16.0.1000.6
|
||||||
|
Shared name:
|
||||||
|
Owner: R9-5900X\yikth
|
||||||
|
Auto-create: No
|
||||||
|
State: Stopped
|
||||||
|
Last start time: 5/10/2023 9:16:58 pm
|
||||||
|
|
||||||
|
// To start instance
|
||||||
|
$ sqllocaldb start myLocalDB
|
||||||
|
Name: myLocalDB
|
||||||
|
Version: 16.0.1000.6
|
||||||
|
Shared name:
|
||||||
|
Owner: R9-5900X\yikth
|
||||||
|
Auto-create: No
|
||||||
|
State: Running
|
||||||
|
Last start time: 5/10/2023 9:18:37 pm
|
||||||
|
Instance pipe name: np:\\.\pipe\LOCALDB#6B6829ED\tsql\query
|
||||||
|
```
|
||||||
|
|
||||||
|
## SSMS Management Tool
|
||||||
|
- From SQL Server Installation Center, select `Install SQL Server Management Tools`. Latest version time of writing : v19.1
|
||||||
|
- Launch SSMS
|
||||||
|
- To connect to newly create localdb instance, enter `(localdb)\myLocalDB` into server name. Use `Window Authentication`
|
||||||
|
- Click `Connect`
|
||||||
|
- Upon Connected, right click on `Database` to create a new database eg.: `myDatabase`
|
||||||
|
|
||||||
|
## Migrate mdb to localdb
|
||||||
|
- Right click on the `myDatabase`, select `Tasks` > `Import Data`
|
||||||
|
- A wizard will launch
|
||||||
|
- For source, select `Microsoft Access Jet Engine`. Select the mdb file
|
||||||
|
- For target, select `Microsft OLE DB Provider for SQL Server`
|
||||||
|
- Set server name using the above pipe name `np:\\.\pipe\LOCALDB#6B6829ED\tsql\query`
|
||||||
|
- Click `Next`
|
||||||
|
- Select list if table to import
|
||||||
|
- On SSMS, right click and select `Refresh` database. Under `Tables`, the imported table will be shown
|
||||||
@ -1,55 +0,0 @@
|
|||||||
# Setup gitea with Postgres DB server on Docker
|
|
||||||
|
|
||||||
1. Start docker
|
|
||||||
|
|
||||||
```
|
|
||||||
$ docker-composer up -d
|
|
||||||
```
|
|
||||||
|
|
||||||
4. Stop server
|
|
||||||
```
|
|
||||||
$ docker-compose down
|
|
||||||
```
|
|
||||||
|
|
||||||
## Setup mySQL Database. Enter 'Y' for all question
|
|
||||||
- Goto mariadb shell
|
|
||||||
|
|
||||||
```shell
|
|
||||||
$ docker exec -it gitea-db-1 bash
|
|
||||||
```
|
|
||||||
|
|
||||||
- Inside the container enter the following to setup the initial database
|
|
||||||
```
|
|
||||||
$ mysql_secure_installation
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
$ mysql -u root
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
- Allow from localhost ONLY
|
|
||||||
```
|
|
||||||
CREATE DATABASE gitea;
|
|
||||||
|
|
||||||
GRANT ALL PRIVILEGES ON gitea.* TO 'gitea'@'localhost' IDENTIFIED BY 'ENTERPASSWORD';
|
|
||||||
|
|
||||||
FLUSH PRIVILEGES;
|
|
||||||
|
|
||||||
exit
|
|
||||||
```
|
|
||||||
|
|
||||||
- Allow from subnet ONLY (172.24.*.*)
|
|
||||||
```
|
|
||||||
CREATE DATABASE gitea;
|
|
||||||
|
|
||||||
GRANT ALL PRIVILEGES ON gitea.* TO 'gitea'@'172.24.%' IDENTIFIED BY 'ENTERPASSWORD';
|
|
||||||
|
|
||||||
FLUSH PRIVILEGES;
|
|
||||||
|
|
||||||
exit
|
|
||||||
```
|
|
||||||
|
|
||||||
- Then, continue with gitea setup
|
|
||||||
- [Gitea Installation](http://localhost:3000)
|
|
||||||
- 
|
|
||||||
@ -1,49 +0,0 @@
|
|||||||
version: "3"
|
|
||||||
|
|
||||||
networks:
|
|
||||||
gitea:
|
|
||||||
external: false
|
|
||||||
|
|
||||||
services:
|
|
||||||
server:
|
|
||||||
image: gitea/gitea:1.17.3
|
|
||||||
container_name: gitea
|
|
||||||
environment:
|
|
||||||
- USER_UID=1000
|
|
||||||
- USER_GID=1000
|
|
||||||
# - GITEA__database__DB_TYPE=mysql
|
|
||||||
# - GITEA__database__HOST=db:3306
|
|
||||||
# - GITEA__database__NAME=gitea
|
|
||||||
# - GITEA__database__USER=gitea
|
|
||||||
# - GITEA__database__PASSWD=gitea
|
|
||||||
restart: always
|
|
||||||
networks:
|
|
||||||
- gitea
|
|
||||||
volumes:
|
|
||||||
- ./gitea:/data
|
|
||||||
- /etc/timezone:/etc/timezone:ro
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
ports:
|
|
||||||
- "3000:3000"
|
|
||||||
- "222:22"
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
db:
|
|
||||||
image: mariadb
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
MARIADB_ROOT_PASSWORD: gitea
|
|
||||||
ports:
|
|
||||||
- 3306:3306
|
|
||||||
networks:
|
|
||||||
- gitea
|
|
||||||
volumes:
|
|
||||||
- ./mysql:/var/lib/mysql
|
|
||||||
|
|
||||||
adminer:
|
|
||||||
image: adminer
|
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- 8080:8080
|
|
||||||
networks:
|
|
||||||
- gitea
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 30 KiB |
@ -1,24 +0,0 @@
|
|||||||
version: '3.8'
|
|
||||||
|
|
||||||
networks:
|
|
||||||
jenkinsNet:
|
|
||||||
external: false
|
|
||||||
|
|
||||||
services:
|
|
||||||
|
|
||||||
jenkins:
|
|
||||||
image: jenkins/jenkins:lts-jdk11
|
|
||||||
privileged: true
|
|
||||||
user: root
|
|
||||||
restart: always
|
|
||||||
networks:
|
|
||||||
- jenkinsNet
|
|
||||||
ports:
|
|
||||||
- 6080:8080
|
|
||||||
- 50000:50000
|
|
||||||
environment:
|
|
||||||
DOCKER_TLS_CERTDIR: /certs
|
|
||||||
volumes:
|
|
||||||
# - ./jenkins-docker-certs:/certs/client
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
- ./jenkins-data:/var/jenkins_home
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
# Redmine Docker
|
|
||||||
|
|
||||||
* [Some reference](https://www.hiroom2.com/2017/12/14/docker-redmine-en/)
|
|
||||||
* [localhost](https://localhost:7080)
|
|
||||||
|
|
||||||
```
|
|
||||||
$ docker-compose up -d
|
|
||||||
|
|
||||||
$ docker-compose down
|
|
||||||
```
|
|
||||||
|
|
||||||
* Default Administrator Password
|
|
||||||
* User : admin
|
|
||||||
* Password : admin
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,59 +0,0 @@
|
|||||||
version: '3.1'
|
|
||||||
|
|
||||||
networks:
|
|
||||||
projectMgmt:
|
|
||||||
external: false
|
|
||||||
|
|
||||||
services:
|
|
||||||
|
|
||||||
redmine:
|
|
||||||
image: redmine:latest
|
|
||||||
restart: always
|
|
||||||
networks:
|
|
||||||
- projectMgmt
|
|
||||||
ports:
|
|
||||||
- 7080:3000
|
|
||||||
environment:
|
|
||||||
# REDMINE_DB_POSTGRES: db
|
|
||||||
REDMINE_DB_MYSQL: db
|
|
||||||
REDMINE_DB_PASSWORD: example
|
|
||||||
REDMINE_SECRET_KEY_BASE: supersecretkey
|
|
||||||
# REDMINE_DB_DATABASE: redmine
|
|
||||||
# REDMINE_DB_USERNAME: redmine
|
|
||||||
volumes:
|
|
||||||
# - /var/lib/some-redmine/sqlite:/usr/src/redmine/sqlite
|
|
||||||
- ./files:/usr/src/redmine/files
|
|
||||||
- ./plugins:/usr/src/redmine/plugins
|
|
||||||
- ./vendor/plugins:/usr/src/redmine/vendor/plugins
|
|
||||||
- ./public/themes:/usr/src/redmine/public/themes
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
db:
|
|
||||||
image: mysql:5.7
|
|
||||||
# image:
|
|
||||||
# mariadb:latest
|
|
||||||
restart: always
|
|
||||||
networks:
|
|
||||||
- projectMgmt
|
|
||||||
environment:
|
|
||||||
MYSQL_ROOT_PASSWORD: example
|
|
||||||
MYSQL_DATABASE: redmine
|
|
||||||
# MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
|
|
||||||
# MYSQL_USER: redmine
|
|
||||||
# MYSQL_PASSWORD: redmine
|
|
||||||
volumes:
|
|
||||||
- ./mysql:/var/lib/mysql
|
|
||||||
|
|
||||||
# Sample postgres
|
|
||||||
# db:
|
|
||||||
# image:
|
|
||||||
# postgres:latest
|
|
||||||
# restart: always
|
|
||||||
# networks:
|
|
||||||
# - projectMgmt
|
|
||||||
# environment:
|
|
||||||
# POSTGRES_DB: redmine
|
|
||||||
# POSTGRES_USER: redmine
|
|
||||||
# POSTGRES_PASSWORD: example
|
|
||||||
# volumes:
|
|
||||||
# - ./postgres:/var/lib/postgresql/data
|
|
||||||
Loading…
Reference in New Issue