Skip to content
This repository was archived by the owner on Feb 21, 2024. It is now read-only.

Commit 5274cae

Browse files
authored
Merge pull request #2204 from FeatureBaseDB/1-10-2023-cherry-pick
v3.27.0 cherry pick from private
2 parents 5c39a49 + 475bf58 commit 5274cae

File tree

202 files changed

+10008
-7449
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+10008
-7449
lines changed

LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2023 Molecula Corp. All rights reserved.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

Makefile

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.PHONY: build clean build-lattice cover cover-viz default docker docker-build docker-tag-push generate generate-protoc generate-pql generate-statik generate-stringer install install-protoc-gen-gofast install-protoc install-statik install-peg test docker-login
22

3+
SHELL := /bin/bash
34
VERSION := $(shell git describe --tags 2> /dev/null || echo unknown)
45
VARIANT = Molecula
56
GO=go
@@ -76,6 +77,16 @@ testvsub:
7677
echo; echo "999 done testing subpkg $$pkg"; \
7778
done
7879

80+
# make a 2GB RAMDisk. Speed up tests by running them with RAMDISK=/mnt/ramdisk
81+
ramdisk-linux:
82+
mount -o size=2G -t tmpfs none /mnt/ramdisk
83+
84+
# make a 2GB RAMDisk. Speed up tests by running them with RAMDISK=/Volumes/RAMDisk
85+
ramdisk-osx:
86+
diskutil erasevolume HFS+ 'RAMDisk' `hdiutil attach -nobrowse -nomount ram://4194304`
87+
88+
detach-ramdisk-osx:
89+
hdiutil detach /Volumes/RAMDisk
7990

8091
testvsub-race:
8192
@set -e; for pkg in $(GOPACKAGES); do \
@@ -228,15 +239,16 @@ build-for-quick:
228239
docker-image-featurebase-quick: build-for-quick
229240
docker build \
230241
--build-arg GO_VERSION=$(GO_VERSION) \
231-
--file Dockerfile-dax-quick ./.quick/
242+
--file Dockerfile-dax-quick \
243+
--tag dax/featurebase ./.quick/
232244

233245

234246
docker-image-datagen: vendor
235247
docker build --tag dax/datagen --file Dockerfile-datagen .
236248

237249
ecr-push-featurebase: docker-login
238-
docker tag dax/featurebase:latest $(AWS_ACCOUNTID).dkr.ecr.us-east-2.amazonaws.com/dax:latest
239-
docker push $(AWS_ACCOUNTID).dkr.ecr.us-east-2.amazonaws.com/dax:latest
250+
docker tag dax/featurebase:latest $(AWS_ACCOUNTID).dkr.ecr.us-east-2.amazonaws.com/dax/featurebase:latest
251+
docker push $(AWS_ACCOUNTID).dkr.ecr.us-east-2.amazonaws.com/dax/featurebase:latest
240252

241253
ecr-push-datagen: docker-login
242254
docker tag dax/datagen:latest $(AWS_ACCOUNTID).dkr.ecr.us-east-2.amazonaws.com/dax/datagen:latest

0 commit comments

Comments
 (0)