This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
username=$1; | |
password=$2; | |
#CREATE USER IN REGISTRY | |
docker run --rm -it -v $(pwd):/data httpd htpasswd -Bb /data/registrypasswords $username $password | |
#CREATE USER IN CATALOG | |
docker run --rm -it -v $(pwd):/data httpd htpasswd -b /data/auth $username $password | |
#UPDATE REGISTRY USERS | |
pass=`cat registrypasswords| base64 -w 0` | |
sed "s/^\(\s*htpasswd\s*:\s*\).*/\1 ${pass}/" secret.yaml > deploy.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { AuthCheck, useUser, useFirestore, useFirestoreCollection} from 'reactfire'; | |
import { Heading } from '@chakra-ui/core'; | |
import { Container, MainLayout, NeedSignInAlert } from '../../components'; | |
const MyRequests = () => { | |
const user = useUser(); | |
const requestsRef = useFirestore().collection('material-requests').where('userId', '==',user.uid); | |
const requests = useFirestoreCollection(requestsRef); |