Skip to content

Commit fa60b17

Browse files
Merge pull request #32 from tushar5526/gitpod
2 parents bf4e41a + 491824d commit fa60b17

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ FUSIONAUTH_APP_MEMORY=512M
77

88
MINIO_USERNAME=workflow-dev
99
MINIO_PASSWORD=workflow-dev
10+
MINIO_BUCKETNAME=affiliationbucket
1011

1112
# central envs
1213
CENTRAL_USER_EMAIL=chakshu@samagragovernance.in

.gitpod.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ tasks:
2929
openMode: tab-after
3030
init: |
3131
gp sync-await setup
32+
source .env
33+
docker run --name enketo-redis-main -p 6369:6379 -d redis
3234
cd packages/form-manager
35+
echo "MINIO_USERNAME=$MINIO_USERNAME" >> .env
36+
echo "MINIO_PASSWORD=$MINIO_PASSWORD" >> .env
37+
echo "MINIO_BUCKETNAME=$MINIO_BUCKETNAME" >> .env
3338
nvm use 16
3439
pnpm install
3540
command: |

docker-compose.gitpod.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,25 @@ services:
136136
- "9000:9000"
137137
- "9001:9001"
138138
volumes:
139-
- ./mnt/cqube_bucket/minio:/data
139+
- minio-data:/data
140140
environment:
141141
MINIO_ROOT_USER: ${MINIO_USERNAME}
142142
MINIO_ROOT_PASSWORD: ${MINIO_PASSWORD}
143143
command: server --console-address ":9001" /data
144144

145+
createbuckets:
146+
image: minio/mc
147+
depends_on:
148+
- minio
149+
entrypoint: >
150+
/bin/sh -c "
151+
/usr/bin/mc config host add myminio http://minio:9000 ${MINIO_USERNAME} ${MINIO_PASSWORD};
152+
/usr/bin/mc rm -r --force myminio/${MINIO_BUCKETNAME};
153+
/usr/bin/mc mb myminio/${MINIO_BUCKETNAME};
154+
/usr/bin/mc policy download myminio/${MINIO_BUCKETNAME};
155+
exit 0;
156+
"
157+
145158
networks:
146159
db_net:
147160
driver: bridge
@@ -152,5 +165,6 @@ networks:
152165
volumes:
153166
db_data:
154167
search_data:
168+
minio-data:
155169
fa-config:
156170
minio_storage: {}

packages/form-manager/src/app.module.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { AppController } from './app.controller';
33
import { AppService } from './app.service';
44
import { ConfigModule, ConfigService } from '@nestjs/config';
55
import { redisStore } from 'cache-manager-redis-store';
6-
import type { RedisClientOptions } from 'redis';
76

87
@Module({
98
imports: [

0 commit comments

Comments
 (0)